This commit was manufactured by cvs2svn to create branch
[oweals/openssl.git] / ssl / s23_srvr.c
index c5404ca0bcd4c015f0273f38e22ef07bffb92585..92f3391f601e1f0dc578c0cccbd5fc79c62af558 100644 (file)
@@ -407,6 +407,15 @@ int ssl23_get_client_hello(SSL *s)
                        }
                }
 
+#ifdef OPENSSL_FIPS
+       if (FIPS_mode() && (s->version < TLS1_VERSION))
+               {
+               SSLerr(SSL_F_SSL23_GET_CLIENT_HELLO,
+                                       SSL_R_ONLY_TLS_ALLOWED_IN_FIPS_MODE);
+               goto err;
+               }
+#endif
+
        if (s->state == SSL23_ST_SR_CLNT_HELLO_B)
                {
                /* we have SSLv3/TLSv1 in an SSLv2 header