1SSL_CTX_SET_TMP_ECDH(3ossl)         OpenSSL        SSL_CTX_SET_TMP_ECDH(3ossl)
2
3
4

NAME

6       SSL_CTX_set_tmp_ecdh, SSL_set_tmp_ecdh, SSL_CTX_set_ecdh_auto,
7       SSL_set_ecdh_auto - handle ECDH keys for ephemeral key exchange
8

SYNOPSIS

10        #include <openssl/ssl.h>
11
12        long SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ecdh);
13        long SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ecdh);
14
15        long SSL_CTX_set_ecdh_auto(SSL_CTX *ctx, int state);
16        long SSL_set_ecdh_auto(SSL *ssl, int state);
17

DESCRIPTION

19       SSL_CTX_set_tmp_ecdh() sets ECDH parameters to be used to be ecdh.  The
20       key is inherited by all ssl objects created from ctx.  This macro is
21       deprecated in favor of SSL_CTX_set1_groups(3).
22
23       SSL_set_tmp_ecdh() sets the parameters only for ssl.  This macro is
24       deprecated in favor of SSL_set1_groups(3).
25
26       SSL_CTX_set_ecdh_auto() and SSL_set_ecdh_auto() are deprecated and have
27       no effect.
28

RETURN VALUES

30       SSL_CTX_set_tmp_ecdh() and SSL_set_tmp_ecdh() return 1 on success and 0
31       on failure.
32

SEE ALSO

34       ssl(7), SSL_CTX_set1_curves(3), SSL_CTX_set_cipher_list(3),
35       SSL_CTX_set_options(3), SSL_CTX_set_tmp_dh_callback(3),
36       openssl-ciphers(1), openssl-ecparam(1)
37
39       Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
40
41       Licensed under the Apache License 2.0 (the "License").  You may not use
42       this file except in compliance with the License.  You can obtain a copy
43       in the file LICENSE in the source distribution or at
44       <https://www.openssl.org/source/license.html>.
45
46
47
483.0.5                             2022-11-01       SSL_CTX_SET_TMP_ECDH(3ossl)
Impressum