When no SRP identity is found, no error was reported server side
authorEasySec <Easy.Sec@free.fr>
Sat, 5 Nov 2016 21:56:13 +0000 (22:56 +0100)
committerRich Salz <rsalz@openssl.org>
Wed, 9 Nov 2016 15:13:20 +0000 (10:13 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1859)

(cherry picked from commit 7bb37cb5938a0cf76c12c8421950e72634d5f61c)

ssl/statem/statem_srvr.c

index 19ceda5919fceb8388e6638b1fef37ab0c93082a..9327654ce5ea9b467e34636e626201e8171907d0 100644 (file)
@@ -1483,6 +1483,9 @@ WORK_STATE tls_post_process_client_hello(SSL *s, WORK_STATE wst)
             if (al != TLS1_AD_UNKNOWN_PSK_IDENTITY)
                 SSLerr(SSL_F_TLS_POST_PROCESS_CLIENT_HELLO,
                        SSL_R_CLIENTHELLO_TLSEXT);
+            else
+                SSLerr(SSL_F_TLS_POST_PROCESS_CLIENT_HELLO,
+                       SSL_R_PSK_IDENTITY_NOT_FOUND);
             goto f_err;
         }
     }