summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorNan Xiao <nan@chinadtrace.org>2021-03-30 16:30:47 +0800
committerTomas Mraz <tomas@openssl.org>2021-04-07 13:02:37 +0200
commit1ac64327dfd8d20072a34e73116ab222d77a24d0 (patch)
tree0f3553c1eca157db6de6cf6a4602ab6475a820de /demos
parent86522324d2a398ad3ed2f648a66b62b0a6176258 (diff)
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);