summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-01-06 22:53:34 +0000
committerBen Laurie <ben@openssl.org>1999-01-06 22:53:34 +0000
commitf8c3c05db95bd30671bd713ea42d26c6d262c36b (patch)
treef190648289a4d37d3d77f9818731ca270c608daf /ssl
parent384c479c8520db8713b44cf572f78146424cd335 (diff)
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!).
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl.h7
-rw-r--r--ssl/ssl_lib.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/ssl/ssl.h b/ssl/ssl.h
index a308481ca9..3238f5e572 100644
--- a/ssl/ssl.h
+++ b/ssl/ssl.h
@@ -746,10 +746,9 @@ typedef struct ssl_st
* RSA *tmp_rsa_cb(SSL *ssl,int export)
* DH *tmp_dh_cb(SSL *ssl,int export)
*/
-#define SSL_CTX_set_tmp_rsa_callback(ctx,cb) \
- SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_RSA_CB,0,(char *)cb)
-#define SSL_CTX_set_tmp_dh_callback(ctx,dh) \
- SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH_CB,0,(char *)dh)
+void SSL_CTX_set_tmp_rsa_callback(SSL_CTX *ctx,
+ RSA *(*cb)(SSL *ssl,int export));
+void SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,DH *(*dh)(SSL *ssl,int export));
#define SSL_CTX_add_extra_chain_cert(ctx,x509) \
SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)x509)
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index a4bbe53fa0..e56233075e 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -1743,6 +1743,12 @@ SSL *s;
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)
#include "../crypto/bio/bss_file.c"
#endif