Make the world a safer place (if people object to this kind of change, speak up
[openssl.git] / ssl / ssl_lib.c
index 093ab052e1fef18fc77e7e3b44284d8b9801c6a8..e56233075ea38ea5679bb2a4eb853ad0ec8aad38 100644 (file)
@@ -61,7 +61,7 @@
 #include "lhash.h"
 #include "ssl_locl.h"
 
-char *SSL_version_str="SSLeay 0.9.1c 22-Dec-1998";
+char *SSL_version_str="OpenSSL 0.9.2 31-Dec-1998";
 
 static STACK *ssl_meth=NULL;
 static STACK *ssl_ctx_meth=NULL;
@@ -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