summaryrefslogtreecommitdiffstats
path: root/demos/bio/saccept.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-10-20 22:31:00 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-10-20 22:31:00 +0100
commitf3efeaad540b000779277b4fc49a239529ee616e (patch)
tree2a6ab8209e3aa4ddd86eaccc4f63cf7c4eb8116d /demos/bio/saccept.c
parentd80b0eeee59fa48f2506fe103de1b52ef6de3f4f (diff)
Fix various typos.
Diffstat (limited to 'demos/bio/saccept.c')
-rw-r--r--demos/bio/saccept.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/bio/saccept.c b/demos/bio/saccept.c
index d3f8442ffd..02479edc03 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>
@@ -58,8 +58,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);