libressl-SSL_CTX_set_tmp_rsa_callback3
Handle rsa keys for ephemeral key exchange
Usage
SSL Library (libssl, -lssl) libcrypto
#include <openssl/ssl.h>
void
SSL_CTX_set_tmp_rsa_callback(SSL_CTX *ctx, RSA *(*tmp_rsa_callback)(SSL *ssl, int is_export, int keylength));
long
SSL_CTX_set_tmp_rsa(SSL_CTX *ctx, RSA *rsa);
long
SSL_CTX_need_tmp_RSA(SSL_CTX *ctx);
void
SSL_set_tmp_rsa_callback(SSL_CTX *ctx, RSA *(*tmp_rsa_callback)(SSL *ssl, int is_export, int keylength));
long
SSL_set_tmp_rsa(SSL *ssl, RSA *rsa);
long
SSL_need_tmp_RSA(SSL *ssl);
Overview
Since they mattered only for deliberately insecure RSA authentication mandated by historical U.S. export restrictions, these functions are all deprecated and have no effect except that SSL_CTX_set_tmp_rsa_callback(), SSL_CTX_set_tmp_rsa(), SSL_set_tmp_rsa_callback(), and SSL_set_tmp_rsa() issue error messages when called.
Return values
These functions always return 0, indicating failure.