X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=apps%2Fs_server.c;h=94c18266f73676152423de509667662921aa7dfc;hp=4e8a9e27bcc74c2fd6185546853679b278aedb5b;hb=c9d6fdd6f79c1725215347ad8409b1e60eaccf0c;hpb=0edb109f97c1bbbd5961326f93b2ccf385b26674 diff --git a/apps/s_server.c b/apps/s_server.c index 4e8a9e27bc..94c18266f7 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -192,8 +192,11 @@ static int psk_find_session_cb(SSL *ssl, const unsigned char *identity, const SSL_CIPHER *cipher = NULL; if (strlen(psk_identity) != identity_len - || memcmp(psk_identity, identity, identity_len) != 0) - return 0; + || memcmp(psk_identity, identity, identity_len) != 0) { + BIO_printf(bio_s_out, + "PSK warning: client identity not what we expected" + " (got '%s' expected '%s')\n", identity, psk_identity); + } if (psksess != NULL) { SSL_SESSION_up_ref(psksess);