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 3828d79..2fa35f4 100644 (file)
@@ -729,7 +729,8 @@ bad:
 
 #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))
                {