5 SSL_CTX_set_tmp_ecdh, SSL_set_tmp_ecdh, SSL_CTX_set_ecdh_auto, SSL_set_ecdh_auto
6 - handle ECDH keys for ephemeral key exchange
10 #include <openssl/ssl.h>
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);
15 long SSL_CTX_set_ecdh_auto(SSL_CTX *ctx, int state);
16 long SSL_set_ecdh_auto(SSL *ssl, int state);
20 SSL_CTX_set_tmp_ecdh() sets ECDH parameters to be used to be B<ecdh>.
21 The key is inherited by all B<ssl> objects created from B<ctx>.
23 SSL_set_tmp_ecdh() sets the parameters only for B<ssl>.
25 SSL_CTX_set_ecdh_auto() and SSL_set_ecdh_auto() are deprecated and
30 SSL_CTX_set_tmp_ecdh() and SSL_set_tmp_ecdh() return 1 on success and 0
35 L<ssl(7)>, L<SSL_CTX_set1_curves(3)>, L<SSL_CTX_set_cipher_list(3)>,
36 L<SSL_CTX_set_options(3)>, L<SSL_CTX_set_tmp_dh_callback(3)>,
37 L<ciphers(1)>, L<ecparam(1)>
41 Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
43 Licensed under the OpenSSL license (the "License"). You may not use
44 this file except in compliance with the License. You can obtain a copy
45 in the file LICENSE in the source distribution or at
46 L<https://www.openssl.org/source/license.html>.