提交 f8c3c05d 编写于 作者: B Ben Laurie

Make the world a safer place (if people object to this kind of change, speak up

soon - I intend to do a lot of it!).
上级 384c479c
...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
Changes between 0.9.1c and 0.9.2 Changes between 0.9.1c and 0.9.2
*) Add prototype for temp key callback functions
SSL_CTX_set_tmp_{rsa,dh}_callback().
[Ben Laurie]
*) Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and *) Make DH_free() tolerate being passed a NULL pointer (like RSA_free() and
DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey(). DSA_free()). Make X509_PUBKEY_set() check for errors in d2i_PublicKey().
[Steve Henson] [Steve Henson]
......
...@@ -746,10 +746,9 @@ typedef struct ssl_st ...@@ -746,10 +746,9 @@ typedef struct ssl_st
* RSA *tmp_rsa_cb(SSL *ssl,int export) * RSA *tmp_rsa_cb(SSL *ssl,int export)
* DH *tmp_dh_cb(SSL *ssl,int export) * DH *tmp_dh_cb(SSL *ssl,int export)
*/ */
#define SSL_CTX_set_tmp_rsa_callback(ctx,cb) \ void SSL_CTX_set_tmp_rsa_callback(SSL_CTX *ctx,
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_RSA_CB,0,(char *)cb) RSA *(*cb)(SSL *ssl,int export));
#define SSL_CTX_set_tmp_dh_callback(ctx,dh) \ void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,DH *(*dh)(SSL *ssl,int export));
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH_CB,0,(char *)dh)
#define SSL_CTX_add_extra_chain_cert(ctx,x509) \ #define SSL_CTX_add_extra_chain_cert(ctx,x509) \
SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)x509) SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)x509)
......
...@@ -1743,6 +1743,12 @@ SSL *s; ...@@ -1743,6 +1743,12 @@ SSL *s;
return(1); return(1);
} }
void SSL_CTX_set_tmp_rsa_callback(SSL_CTX *ctx,RSA *(*cb)(SSL *ssl,int export))
{ SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_RSA_CB,0,(char *)cb); }
void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,DH *(*dh)(SSL *ssl,int export))
{ SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH_CB,0,(char *)dh); }
#if defined(_WINDLL) && defined(WIN16) #if defined(_WINDLL) && defined(WIN16)
#include "../crypto/bio/bss_file.c" #include "../crypto/bio/bss_file.c"
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册