diff options
author | Matt Caswell <matt@openssl.org> | 2018-09-19 15:51:49 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-09-21 18:39:14 +0200 |
commit | cd6fe29f5bad1a350a039673e06f83ec7a7ef619 (patch) | |
tree | 9cd171cf3be4a93f1999e7864572583d97094040 /test/ssltestlib.c | |
parent | Delay setting the sig algs until after the cert_cb has been called (diff) | |
download | openssl-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.c | 4 |
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; } |