Security framework.
[openssl.git] / ssl / s23_srvr.c
index 9d47c22cb86e98f70e57611a26caae9a6ba9a4ac..cb2b138f08d573f8b01782a9ed700a51fff31d44 100644 (file)
@@ -441,6 +441,12 @@ int ssl23_get_client_hello(SSL *s)
                }
 #endif
 
+       if (!ssl_security(s, SSL_SECOP_VERSION, 0, s->version, NULL))
+               {
+               SSLerr(SSL_F_SSL23_GET_CLIENT_HELLO,SSL_R_VERSION_TOO_LOW);
+               goto err;
+               }
+
        if (s->state == SSL23_ST_SR_CLNT_HELLO_B)
                {
                /* we have SSLv3/TLSv1 in an SSLv2 header