Fix formatting in statem_srvr.c based on review feedback
authorMatt Caswell <matt@openssl.org>
Mon, 18 Jul 2016 13:17:42 +0000 (14:17 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 18 Jul 2016 13:30:14 +0000 (14:30 +0100)
Also elaborated a comment based on feedback.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
ssl/statem/statem_srvr.c

index afeeee7bd44c49c400a32465abb0b373648b5c58..b9d25ee106fb85ed5c8ef5b77b715942d8b8095f 100644 (file)
@@ -104,11 +104,12 @@ int ossl_statem_server_read_transition(SSL *s, int mt)
         if (mt == SSL3_MT_CLIENT_KEY_EXCHANGE) {
             if (s->s3->tmp.cert_request) {
                 if (s->version == SSL3_VERSION) {
-                    if ((s->verify_mode & SSL_VERIFY_PEER) &&
-                          (s->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT)) {
+                    if ((s->verify_mode & SSL_VERIFY_PEER)
+                        && (s->verify_mode & SSL_VERIFY_FAIL_IF_NO_PEER_CERT)) {
                         /*
                          * This isn't an unexpected message as such - we're just
-                         * not going to accept it.
+                         * not going to accept it because we require a client
+                         * cert.
                          */
                         ssl3_send_alert(s, SSL3_AL_FATAL,
                                         SSL3_AD_HANDSHAKE_FAILURE);