diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-09-24 11:26:56 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2018-09-24 11:26:56 +0000 |
commit | b928a98af46d0ffa98adc5b90cfa9d5202a9edd4 (patch) | |
tree | c63d66fb19377cd0fbd32607f943a6ac34f33f73 | |
parent | 1b37437fe437d936d264dc6ecf6a2a3991580e36 (diff) | |
download | neon-b928a98af46d0ffa98adc5b90cfa9d5202a9edd4.tar.gz |
* test/ssl.c (no_client_cert): Handle certificate required error
with TLSv1.3.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@2020 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
-rw-r--r-- | test/ssl.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1201,6 +1201,8 @@ static int ccert_unencrypted(void) } #define NOCERT_MESSAGE "client certificate was requested" +/* random SSL read may fail like this with TLSv1.3 */ +#define NOCERT_ALT "certificate required" /* Tests for useful error message if a handshake fails where a client * cert was requested. */ @@ -1222,7 +1224,8 @@ static int no_client_cert(void) ONV(ret != NE_ERROR, ("unexpected result %d: %s", ret, ne_get_error(sess))); - ONV(strstr(ne_get_error(sess), NOCERT_MESSAGE) == NULL, + ONV(strstr(ne_get_error(sess), NOCERT_MESSAGE) == NULL + && strstr(ne_get_error(sess), NOCERT_ALT) == NULL, ("error message was '%s', missing '%s'", ne_get_error(sess), NOCERT_MESSAGE)); |