Changeset 31 in Main
- Timestamp:
- Sep 16, 2024, 4:52:02 PM (2 months ago)
- Location:
- trunk/Server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r29 r31 503 503 } 504 504 if(s.st_size < 1024ULL) { 505 sprintf(size, "%d", s.st_size);505 sprintf(size, "%d", (int)s.st_size); 506 506 } else if(s.st_size < 1024ULL * 1024) { 507 507 sprintf(size, "%.1fK", (double)s.st_size / 1024); -
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); -
trunk/Server/tw_ssl.h
r12 r31 5 5 6 6 #include <openssl/ssl.h> 7 #include <stdint.h> 7 8 8 SSL_CTX* tw_create_ssl_ctx( uint64_tport);9 SSL_CTX* tw_create_ssl_ctx(__UINTPTR_TYPE__ port); 9 10 10 11 #endif
Note:
See TracChangeset
for help on using the changeset viewer.