summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-10-20 22:31:00 +0100
committerDr. Stephen Henson <steve@openssl.org>2014-02-02 23:12:06 +0000
commit1180833643d7310573366b7e3d36e70c7defba9c (patch)
tree11a15c17d73b4b821cb5b8bf6aa5422e0279e1ce /demos
parent130eed01cce2f3858345f2aa338af45b5b1a01e5 (diff)
Fix various typos.
(cherry picked from commit f3efeaad540b000779277b4fc49a239529ee616e)
Diffstat (limited to 'demos')
-rw-r--r--demos/bio/saccept.c8
-rw-r--r--demos/bio/server-arg.c14
-rw-r--r--demos/bio/server-conf.c14
3 files changed, 16 insertions, 20 deletions
diff --git a/demos/bio/saccept.c b/demos/bio/saccept.c
index 40cd4daad2..699930db51 100644
--- a/demos/bio/saccept.c
+++ b/demos/bio/saccept.c
@@ -1,13 +1,13 @@
/* NOCW */
/* demos/bio/saccept.c */
-/* A minimal program to server an SSL connection.
+/* A minimal program to serve an SSL connection.
* It uses blocking.
* saccept host:port
* host is the interface IP to use. If any interface, use *:port
* The default it *:4433
*
- * cc -I../../include saccept.c -L../.. -lssl -lcrypto
+ * cc -I../../include saccept.c -L../.. -lssl -lcrypto -ldl
*/
#include <stdio.h>
@@ -67,8 +67,8 @@ char *argv[];
if ((in=BIO_new_accept(port)) == NULL) goto err;
- /* This means that when a new connection is acceptede on 'in',
- * The ssl_bio will be 'dupilcated' and have the new socket
+ /* This means that when a new connection is accepted on 'in',
+ * The ssl_bio will be 'duplicated' and have the new socket
* BIO push into it. Basically it means the SSL BIO will be
* automatically setup */
BIO_set_accept_bios(in,ssl_bio);
diff --git a/demos/bio/server-arg.c b/demos/bio/server-arg.c
index cf8e86b754..be35e6210b 100644
--- a/demos/bio/server-arg.c
+++ b/demos/bio/server-arg.c
@@ -1,13 +1,11 @@
/* NOCW */
-/* demos/bio/saccept.c */
+/* demos/bio/server-arg.c */
-/* A minimal program to server an SSL connection.
+/* A minimal program to serve an SSL connection.
* It uses blocking.
- * saccept host:port
- * host is the interface IP to use. If any interface, use *:port
- * The default it *:4433
+ * It use the SSL_CONF API with the command line.
*
- * cc -I../../include saccept.c -L../.. -lssl -lcrypto
+ * cc -I../../include server-arg.c -L../.. -lssl -lcrypto -ldl
*/
#include <stdio.h>
@@ -90,8 +88,8 @@ int main(int argc, char *argv[])
if ((in=BIO_new_accept(port)) == NULL) goto err;
- /* This means that when a new connection is acceptede on 'in',
- * The ssl_bio will be 'dupilcated' and have the new socket
+ /* This means that when a new connection is accepted on 'in',
+ * The ssl_bio will be 'duplicated' and have the new socket
* BIO push into it. Basically it means the SSL BIO will be
* automatically setup */
BIO_set_accept_bios(in,ssl_bio);
diff --git a/demos/bio/server-conf.c b/demos/bio/server-conf.c
index ce8e7a5672..0d940f0f77 100644
--- a/demos/bio/server-conf.c
+++ b/demos/bio/server-conf.c
@@ -1,13 +1,11 @@
/* NOCW */
-/* demos/bio/saccept.c */
+/* demos/bio/saccept-conf.c */
-/* A minimal program to server an SSL connection.
+/* A minimal program to serve an SSL connection.
* It uses blocking.
- * saccept host:port
- * host is the interface IP to use. If any interface, use *:port
- * The default it *:4433
+ * It uses the SSL_CONF API with a configuration file.
*
- * cc -I../../include saccept.c -L../.. -lssl -lcrypto
+ * cc -I../../include saccept.c -L../.. -lssl -lcrypto -ldl
*/
#include <stdio.h>
@@ -98,8 +96,8 @@ int main(int argc, char *argv[])
if ((in=BIO_new_accept(port)) == NULL) goto err;
- /* This means that when a new connection is acceptede on 'in',
- * The ssl_bio will be 'dupilcated' and have the new socket
+ /* This means that when a new connection is accepted on 'in',
+ * The ssl_bio will be 'duplicated' and have the new socket
* BIO push into it. Basically it means the SSL BIO will be
* automatically setup */
BIO_set_accept_bios(in,ssl_bio);