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


Ignore:
Timestamp:
Sep 14, 2024, 9:51:41 AM (2 months ago)
Author:
Nishi
Message:

add fallback option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/ssl.c

    r16 r19  
    2626                SSL_use_certificate_file(ssl, e->sslcert, SSL_FILETYPE_PEM);
    2727                return 1;
     28        } else if(config.root.sslkey != NULL && config.root.sslcert != NULL) {
     29                SSL_use_PrivateKey_file(ssl, config.root.sslkey, SSL_FILETYPE_PEM);
     30                SSL_use_certificate_file(ssl, config.root.sslcert, SSL_FILETYPE_PEM);
    2831        } else {
    2932                return 0;
Note: See TracChangeset for help on using the changeset viewer.