logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SSL_CTX_set_tmp_ecdh, SSL_set_tmp_ecdh, SSL_CTX_set_ecdh_auto, SSL_set_ecdh_auto - handle ECDH keys for

Description

SSL_CTX_set_tmp_ecdh() sets ECDH parameters to be used to be ecdh.  The key is inherited by all ssl
       objects created from ctx.  This macro is deprecated in favor of SSL_CTX_set1_groups(3).

       SSL_set_tmp_ecdh() sets the parameters only for ssl.  This macro is deprecated in favor of
       SSL_set1_groups(3).

       SSL_CTX_set_ecdh_auto() and SSL_set_ecdh_auto() are deprecated and have no effect.

Name

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

Return Values

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

See Also

ssl(7), SSL_CTX_set1_curves(3), SSL_CTX_set_cipher_list(3), SSL_CTX_set_options(3),
       SSL_CTX_set_tmp_dh_callback(3), openssl-ciphers(1), openssl-ecparam(1)

Synopsis

        #include <openssl/ssl.h>

        long SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ecdh);
        long SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ecdh);

        long SSL_CTX_set_ecdh_auto(SSL_CTX *ctx, int state);
        long SSL_set_ecdh_auto(SSL *ssl, int state);

See Also