Changeset 31 in Main for trunk/Server/ssl.c


Ignore:
Timestamp:
Sep 16, 2024, 4:52:02 PM (2 months ago)
Author:
Nishi
Message:

use uintptr_type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/ssl.c

    r20 r31  
    2121                cm_log("SSL", "Could not get the servername, defaulting to the hostname: %s", s);
    2222        }
    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);
    2424        if(e != NULL && e->sslkey != NULL && e->sslcert != NULL) {
    2525                SSL_use_PrivateKey_file(ssl, e->sslkey, SSL_FILETYPE_PEM);
     
    3535}
    3636
    37 SSL_CTX* tw_create_ssl_ctx(uint64_t port) {
     37SSL_CTX* tw_create_ssl_ctx(__UINTPTR_TYPE__ port) {
    3838        SSL_CTX* ctx = SSL_CTX_new(TLS_server_method());
    3939        SSL_CTX_set_cert_cb(ctx, tw_ssl_cert_cb, (void*)port);
Note: See TracChangeset for help on using the changeset viewer.