提交 f3efeaad 编写于 作者: D Dr. Stephen Henson

Fix various typos.

上级 d80b0eee
/* NOCW */ /* NOCW */
/* demos/bio/saccept.c */ /* demos/bio/saccept.c */
/* A minimal program to server an SSL connection. /* A minimal program to serve an SSL connection.
* It uses blocking. * It uses blocking.
* saccept host:port * saccept host:port
* host is the interface IP to use. If any interface, use *:port * host is the interface IP to use. If any interface, use *:port
* The default it *:4433 * The default it *:4433
* *
* cc -I../../include saccept.c -L../.. -lssl -lcrypto * cc -I../../include saccept.c -L../.. -lssl -lcrypto -ldl
*/ */
#include <stdio.h> #include <stdio.h>
...@@ -58,8 +58,8 @@ int main(int argc, char *argv[]) ...@@ -58,8 +58,8 @@ int main(int argc, char *argv[])
if ((in=BIO_new_accept(port)) == NULL) goto err; if ((in=BIO_new_accept(port)) == NULL) goto err;
/* This means that when a new connection is acceptede on 'in', /* This means that when a new connection is accepted on 'in',
* The ssl_bio will be 'dupilcated' and have the new socket * The ssl_bio will be 'duplicated' and have the new socket
* BIO push into it. Basically it means the SSL BIO will be * BIO push into it. Basically it means the SSL BIO will be
* automatically setup */ * automatically setup */
BIO_set_accept_bios(in,ssl_bio); BIO_set_accept_bios(in,ssl_bio);
......
/* NOCW */ /* 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. * It uses blocking.
* saccept host:port * It use the SSL_CONF API with the command line.
* 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 server-arg.c -L../.. -lssl -lcrypto -ldl
*/ */
#include <stdio.h> #include <stdio.h>
...@@ -90,8 +88,8 @@ int main(int argc, char *argv[]) ...@@ -90,8 +88,8 @@ int main(int argc, char *argv[])
if ((in=BIO_new_accept(port)) == NULL) goto err; if ((in=BIO_new_accept(port)) == NULL) goto err;
/* This means that when a new connection is acceptede on 'in', /* This means that when a new connection is accepted on 'in',
* The ssl_bio will be 'dupilcated' and have the new socket * The ssl_bio will be 'duplicated' and have the new socket
* BIO push into it. Basically it means the SSL BIO will be * BIO push into it. Basically it means the SSL BIO will be
* automatically setup */ * automatically setup */
BIO_set_accept_bios(in,ssl_bio); BIO_set_accept_bios(in,ssl_bio);
......
/* NOCW */ /* 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. * It uses blocking.
* saccept host:port * It uses the SSL_CONF API with a configuration file.
* 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> #include <stdio.h>
...@@ -98,8 +96,8 @@ int main(int argc, char *argv[]) ...@@ -98,8 +96,8 @@ int main(int argc, char *argv[])
if ((in=BIO_new_accept(port)) == NULL) goto err; if ((in=BIO_new_accept(port)) == NULL) goto err;
/* This means that when a new connection is acceptede on 'in', /* This means that when a new connection is accepted on 'in',
* The ssl_bio will be 'dupilcated' and have the new socket * The ssl_bio will be 'duplicated' and have the new socket
* BIO push into it. Basically it means the SSL BIO will be * BIO push into it. Basically it means the SSL BIO will be
* automatically setup */ * automatically setup */
BIO_set_accept_bios(in,ssl_bio); BIO_set_accept_bios(in,ssl_bio);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册