aboutsummaryrefslogtreecommitdiffstats
path: root/demos/bio/client-arg.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-10-18 16:28:38 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-10-20 22:21:52 +0100
commitebd14bfce9ef6b4bf41129a329823130d1002f42 (patch)
tree2dab18ea6ea69b2b798d9842e3a677136cc33b86 /demos/bio/client-arg.c
parentec2f7e568ea18a22ab57326fffe78ef2aa6884f5 (diff)
downloadopenssl-ebd14bfce9ef6b4bf41129a329823130d1002f42.tar.gz
Add demo for SSL server using SSL_CONF.
Diffstat (limited to 'demos/bio/client-arg.c')
-rw-r--r--demos/bio/client-arg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/demos/bio/client-arg.c b/demos/bio/client-arg.c
index f0cb9aba90..cca7a1ed06 100644
--- a/demos/bio/client-arg.c
+++ b/demos/bio/client-arg.c
@@ -60,6 +60,13 @@ int main(int argc, char **argv)
}
}
+ if (!SSL_CONF_CTX_finish(cctx))
+ {
+ fprintf(stderr, "Finish error\n");
+ ERR_print_errors_fp(stderr);
+ goto err;
+ }
+
/* We'd normally set some stuff like the verify paths and
* mode here because as things stand this will connect to
* any server whose certificate is signed by any CA.