SSL_CTX_SET_TMP_ECDH(3ossl)

πŸ“¦
version 15.1 Β· 3 versions
, in freebsd 15.1

🌸 NAME 🌸

okay bestie, welcome to the SSL_CTX_SET_TMP_ECDH(3ossl) page β€” yes, that’s the manual name, right up top, no cap ✨. This one covers:

  • SSL_CTX_set_tmp_ecdh
  • SSL_set_tmp_ecdh
  • SSL_CTX_set_ecdh_auto
  • SSL_set_ecdh_auto

and their whole thing is handle ECDH keys for ephemeral key exchange πŸ’….


🌈 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);

πŸ’– DESCRIPTION πŸ’–

SSL_CTX_set_tmp_ecdh() sets the ECDH parameters to be ecdh. The key is inherited by all ssl objects created from ctx β€” like, every little SSL gets the same inherited vibe ✨. Heads up though: 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. Literally none, bestie β€” decorative-only energy πŸ’€.


πŸŽ€ RETURN VALUES πŸŽ€

SSL_CTX_set_tmp_ecdh() and SSL_set_tmp_ecdh() return 1 on success and 0 on failure. That’s the whole vibe check, periodt πŸ’….


πŸ¦‹ SEE ALSO πŸ¦‹


Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.

OpenSSL 3.5.6 🌈 2026-04-07 🌈 that’s the source/version + date, bestie β€” slay πŸ’…

πŸ“¦ where this page comes from