summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2018-09-24 11:26:56 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2018-09-24 11:26:56 +0000
commitb928a98af46d0ffa98adc5b90cfa9d5202a9edd4 (patch)
treec63d66fb19377cd0fbd32607f943a6ac34f33f73
parent1b37437fe437d936d264dc6ecf6a2a3991580e36 (diff)
downloadneon-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ssl.c b/test/ssl.c
index 7cd40cf..63c2c42 100644
--- a/test/ssl.c
+++ b/test/ssl.c
@@ -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));