projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Set the ossl_shim to auto retry if not running asynchronously
[openssl.git]
/
test
/
ossl_shim
/
ossl_shim.cc
diff --git
a/test/ossl_shim/ossl_shim.cc
b/test/ossl_shim/ossl_shim.cc
index 739d1bd167c14b8e3ea5ad87dbc7c1bf4ffa5749..b1067e842092c717ed504d2eecd1d4e549578a4b 100644
(file)
--- a/
test/ossl_shim/ossl_shim.cc
+++ b/
test/ossl_shim/ossl_shim.cc
@@
-985,6
+985,10
@@
static bool DoExchange(bssl::UniquePtr<SSL_SESSION> *out_session,
SSL_set_max_cert_list(ssl.get(), config->max_cert_list);
}
+ if (!config->async) {
+ SSL_set_mode(ssl.get(), SSL_MODE_AUTO_RETRY);
+ }
+
int sock = Connect(config->port);
if (sock == -1) {
return false;