ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/irc.c
(Generate patch)

Comparing hopm/trunk/src/irc.c (file contents):
Revision 9483 by michael, Sat Jul 4 19:12:39 2020 UTC vs.
Revision 9488 by michael, Sat Jul 4 19:30:52 2020 UTC

# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines