Fossil SCM
Adapted ssl_new_server() docs to account for code changes.
Commit
258479650bdfdb6910eae9bfe213831e3859d8937cc4f86388d4349812a5405d
Parent
7a3bf55f5489f53…
1 file changed
+3
-5
+3
-5
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -753,15 +753,13 @@ | ||
| 753 | 753 | int atEof; /* True when EOF reached. */ |
| 754 | 754 | int iSocket; /* The socket */ |
| 755 | 755 | } SslServerConn; |
| 756 | 756 | |
| 757 | 757 | /* |
| 758 | -** Create a new server-side codec. The arguments are the file | |
| 759 | -** descriptors from which teh codec reads and writes, respectively. | |
| 760 | -** | |
| 761 | -** If the writeFd is negative, then use then the readFd is a socket | |
| 762 | -** over which we both read and write. | |
| 758 | +** Create a new server-side codec. The argument is the socket's file | |
| 759 | +** descriptor from which the codec reads and writes. The returned | |
| 760 | +** memory must eventually be passed to ssl_close_server(). | |
| 763 | 761 | */ |
| 764 | 762 | void *ssl_new_server(int iSocket){ |
| 765 | 763 | SslServerConn *pServer = fossil_malloc_zero(sizeof(*pServer)); |
| 766 | 764 | BIO *b = BIO_new_socket(iSocket, 0); |
| 767 | 765 | pServer->ssl = SSL_new(sslCtx); |
| 768 | 766 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -753,15 +753,13 @@ | |
| 753 | int atEof; /* True when EOF reached. */ |
| 754 | int iSocket; /* The socket */ |
| 755 | } SslServerConn; |
| 756 | |
| 757 | /* |
| 758 | ** Create a new server-side codec. The arguments are the file |
| 759 | ** descriptors from which teh codec reads and writes, respectively. |
| 760 | ** |
| 761 | ** If the writeFd is negative, then use then the readFd is a socket |
| 762 | ** over which we both read and write. |
| 763 | */ |
| 764 | void *ssl_new_server(int iSocket){ |
| 765 | SslServerConn *pServer = fossil_malloc_zero(sizeof(*pServer)); |
| 766 | BIO *b = BIO_new_socket(iSocket, 0); |
| 767 | pServer->ssl = SSL_new(sslCtx); |
| 768 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -753,15 +753,13 @@ | |
| 753 | int atEof; /* True when EOF reached. */ |
| 754 | int iSocket; /* The socket */ |
| 755 | } SslServerConn; |
| 756 | |
| 757 | /* |
| 758 | ** Create a new server-side codec. The argument is the socket's file |
| 759 | ** descriptor from which the codec reads and writes. The returned |
| 760 | ** memory must eventually be passed to ssl_close_server(). |
| 761 | */ |
| 762 | void *ssl_new_server(int iSocket){ |
| 763 | SslServerConn *pServer = fossil_malloc_zero(sizeof(*pServer)); |
| 764 | BIO *b = BIO_new_socket(iSocket, 0); |
| 765 | pServer->ssl = SSL_new(sslCtx); |
| 766 |