From b928a98af46d0ffa98adc5b90cfa9d5202a9edd4 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 24 Sep 2018 11:26:56 +0000 Subject: * 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 --- test/ssl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.1