Changeset 31 in Main for trunk/Server/ssl.c
- Timestamp:
- Sep 16, 2024, 4:52:02 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/ssl.c
r20 r31 21 21 cm_log("SSL", "Could not get the servername, defaulting to the hostname: %s", s); 22 22 } 23 struct tw_config_entry* e = tw_vhost_match(s, ( uint64_t)arg);23 struct tw_config_entry* e = tw_vhost_match(s, (__UINTPTR_TYPE__)arg); 24 24 if(e != NULL && e->sslkey != NULL && e->sslcert != NULL) { 25 25 SSL_use_PrivateKey_file(ssl, e->sslkey, SSL_FILETYPE_PEM); … … 35 35 } 36 36 37 SSL_CTX* tw_create_ssl_ctx( uint64_tport) {37 SSL_CTX* tw_create_ssl_ctx(__UINTPTR_TYPE__ port) { 38 38 SSL_CTX* ctx = SSL_CTX_new(TLS_server_method()); 39 39 SSL_CTX_set_cert_cb(ctx, tw_ssl_cert_cb, (void*)port);
Note:
See TracChangeset
for help on using the changeset viewer.