Changeset 15 in Main for trunk/Server
- Timestamp:
- Sep 13, 2024, 10:49:53 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r14 r15 132 132 SSL_CTX* ctx = NULL; 133 133 SSL* s = NULL; 134 bool sslworks = false; 134 135 if(ssl) { 135 136 ctx = tw_create_ssl_ctx(port); … … 137 138 SSL_set_fd(s, sock); 138 139 if(SSL_accept(s) <= 0) goto cleanup; 140 sslworks = true; 139 141 } 140 142 cleanup: 143 if(sslworks){ 144 SSL_shutdown(s); 145 } 146 SSL_free(s); 141 147 close_socket(sock); 142 148 #ifdef __MINGW32__
Note:
See TracChangeset
for help on using the changeset viewer.