Fossil SCM

Adapted ssl_new_server() docs to account for code changes.

stephan 2021-12-29 03:15 trunk
Commit 258479650bdfdb6910eae9bfe213831e3859d8937cc4f86388d4349812a5405d
1 file changed +3 -5
+3 -5
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -753,15 +753,13 @@
753753
int atEof; /* True when EOF reached. */
754754
int iSocket; /* The socket */
755755
} SslServerConn;
756756
757757
/*
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().
763761
*/
764762
void *ssl_new_server(int iSocket){
765763
SslServerConn *pServer = fossil_malloc_zero(sizeof(*pServer));
766764
BIO *b = BIO_new_socket(iSocket, 0);
767765
pServer->ssl = SSL_new(sslCtx);
768766
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button