honour '-no_tmp_rsa'
authorBodo Möller <bodo@openssl.org>
Tue, 20 Feb 2001 12:59:48 +0000 (12:59 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 20 Feb 2001 12:59:48 +0000 (12:59 +0000)
apps/s_server.c

index 3828d79e7d6ce5670e26fbf45f566e0668f09bdf..2fa35f4d101fb60e6600f4daf7f9a389c17050b4 100644 (file)
@@ -729,7 +729,8 @@ bad:
 
 #ifndef OPENSSL_NO_RSA
 #if 1
 
 #ifndef OPENSSL_NO_RSA
 #if 1
-       SSL_CTX_set_tmp_rsa_callback(ctx,tmp_rsa_cb);
+       if (!no_tmp_rsa)
+               SSL_CTX_set_tmp_rsa_callback(ctx,tmp_rsa_cb);
 #else
        if (!no_tmp_rsa && SSL_CTX_need_tmp_RSA(ctx))
                {
 #else
        if (!no_tmp_rsa && SSL_CTX_need_tmp_RSA(ctx))
                {