summaryrefslogtreecommitdiffstats
path: root/test/ssltestlib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-09-19 15:51:49 +0200
committerMatt Caswell <matt@openssl.org>2018-09-21 18:39:14 +0200
commitcd6fe29f5bad1a350a039673e06f83ec7a7ef619 (patch)
tree9cd171cf3be4a93f1999e7864572583d97094040 /test/ssltestlib.c
parentDelay setting the sig algs until after the cert_cb has been called (diff)
downloadopenssl-cd6fe29f5bad1a350a039673e06f83ec7a7ef619.tar.xz
openssl-cd6fe29f5bad1a350a039673e06f83ec7a7ef619.zip
Add a test for the certificate callback
Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/7257)
Diffstat (limited to 'test/ssltestlib.c')
-rw-r--r--test/ssltestlib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ssltestlib.c b/test/ssltestlib.c
index a055d3b5d2..71b78584e2 100644
--- a/test/ssltestlib.c
+++ b/test/ssltestlib.c
@@ -712,7 +712,9 @@ int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want)
err = SSL_get_error(serverssl, rets);
}
- if (!servererr && rets <= 0 && err != SSL_ERROR_WANT_READ) {
+ if (!servererr && rets <= 0
+ && err != SSL_ERROR_WANT_READ
+ && err != SSL_ERROR_WANT_X509_LOOKUP) {
TEST_info("SSL_accept() failed %d, %d", rets, err);
servererr = 1;
}