Add missing '#ifndef NO_DSA'.
[oweals/openssl.git] / apps / s_server.c
index 7f5af98c139f1b9d904dece5df9da8e9cf419061..29ed59863871741b0b8e58724b650800d8c0a3bb 100644 (file)
@@ -83,6 +83,7 @@ typedef unsigned int u_int;
 #include <openssl/pem.h>
 #include <openssl/x509.h>
 #include <openssl/ssl.h>
+#include <openssl/rand.h>
 #include "s_apps.h"
 
 #ifdef WINDOWS
@@ -690,7 +691,8 @@ bad:
 
 #ifndef 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))
                {