summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorNan Xiao <nan@chinadtrace.org>2021-03-30 10:30:47 +0200
committerTomas Mraz <tomas@openssl.org>2021-04-07 13:02:37 +0200
commit1ac64327dfd8d20072a34e73116ab222d77a24d0 (patch)
tree0f3553c1eca157db6de6cf6a4602ab6475a820de /demos
parentAdds a new lock to read default_path and uses a strdup() on default_path befo... (diff)
downloadopenssl-1ac64327dfd8d20072a34e73116ab222d77a24d0.tar.xz
openssl-1ac64327dfd8d20072a34e73116ab222d77a24d0.zip
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 <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14742)
Diffstat (limited to 'demos')
-rw-r--r--demos/bio/client-arg.c3
-rw-r--r--demos/bio/client-conf.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/demos/bio/client-arg.c b/demos/bio/client-arg.c
index 27c4c98f96..c35b9233a4 100644
--- a/demos/bio/client-arg.c
+++ b/demos/bio/client-arg.c
@@ -80,9 +80,6 @@ int main(int argc, char **argv)
goto end;
}
- /* Don't want any retries */
- SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY);
-
/* We might want to do other things with ssl here */
BIO_set_conn_hostname(sbio, connect_str);
diff --git a/demos/bio/client-conf.c b/demos/bio/client-conf.c
index 270df377e7..da6548e6a3 100644
--- a/demos/bio/client-conf.c
+++ b/demos/bio/client-conf.c
@@ -88,9 +88,6 @@ int main(int argc, char **argv)
goto end;
}
- /* Don't want any retries */
- SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY);
-
/* We might want to do other things with ssl here */
BIO_set_conn_hostname(sbio, connect_str);