From 1ac64327dfd8d20072a34e73116ab222d77a24d0 Mon Sep 17 00:00:00 2001 From: Nan Xiao Date: Tue, 30 Mar 2021 16:30:47 +0800 Subject: Remove unnecessary setting SSL_MODE_AUTO_RETRY Since SSL_MODE_AUTO_RETRY is enabled by default, no need to set it explicitly. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/14742) --- apps/cmp.c | 2 -- apps/ocsp.c | 1 - apps/s_time.c | 1 - 3 files changed, 4 deletions(-) (limited to 'apps') diff --git a/apps/cmp.c b/apps/cmp.c index 2112df0186..8a996f6dce 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -1191,8 +1191,6 @@ static SSL_CTX *setup_ssl_ctx(OSSL_CMP_CTX *ctx, ENGINE *engine) if (ssl_ctx == NULL) return NULL; - SSL_CTX_set_mode(ssl_ctx, SSL_MODE_AUTO_RETRY); - if (opt_tls_trusted != NULL) { trust_store = load_certstore(opt_tls_trusted, opt_otherpass, "trusted TLS certificates", vpm); diff --git a/apps/ocsp.c b/apps/ocsp.c index bd509d98a7..cd3a3bd695 100644 --- a/apps/ocsp.c +++ b/apps/ocsp.c @@ -1202,7 +1202,6 @@ OCSP_RESPONSE *process_responder(OCSP_REQUEST *req, BIO_printf(bio_err, "Error creating SSL context.\n"); goto end; } - SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY); } resp = (OCSP_RESPONSE *) diff --git a/apps/s_time.c b/apps/s_time.c index 60861642f5..251f16ebc3 100644 --- a/apps/s_time.c +++ b/apps/s_time.c @@ -246,7 +246,6 @@ int s_time_main(int argc, char **argv) if ((ctx = SSL_CTX_new(meth)) == NULL) goto end; - SSL_CTX_set_mode(ctx, SSL_MODE_AUTO_RETRY); SSL_CTX_set_quiet_shutdown(ctx, 1); if (SSL_CTX_set_min_proto_version(ctx, min_version) == 0) goto end; -- cgit v1.2.3