# | Line 544 | Line 544 | irc_init(void) | |
---|---|---|
544 | { | |
545 | tls_init = 1; | |
546 | ||
547 | < | ssl_ctx = SSL_CTX_new(SSLv23_client_method()); |
547 | > | ssl_ctx = SSL_CTX_new(TLS_client_method()); |
548 | if (ssl_ctx == NULL) | |
549 | { | |
550 | log_printf("IRC -> unable to create SSL context"); | |
551 | exit(EXIT_FAILURE); | |
552 | } | |
553 | ||
554 | + | SSL_CTX_set_min_proto_version(ssl_ctx, TLS1_2_VERSION); |
555 | SSL_CTX_set_default_verify_paths(ssl_ctx); | |
556 | } | |
557 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |