]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix various typos.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 20 Oct 2013 21:31:00 +0000 (22:31 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 2 Feb 2014 23:12:06 +0000 (23:12 +0000)
(cherry picked from commit f3efeaad540b000779277b4fc49a239529ee616e)

demos/bio/saccept.c
demos/bio/server-arg.c
demos/bio/server-conf.c

index 40cd4daad2939d2768d4048444b09cf3bd3e4482..699930db513c37677bf9d411b1fc1daf18c392a1 100644 (file)
@@ -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);
index cf8e86b754098d23da945b48ea62e32f75349ceb..be35e6210bf0cde97bcab7cd7979675c0bd85807 100644 (file)
@@ -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);
index ce8e7a5672bc138a99fa27e80d7d0c362afd3ccc..0d940f0f77123acb3bb264038cfba9da2c0df029 100644 (file)
@@ -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);