"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/socket.c" between
imapfilter-2.7.4.tar.gz and imapfilter-2.7.5.tar.gz

About: imapfilter filters/deletes unwanted mails from IMAP servers

socket.c  (imapfilter-2.7.4):socket.c  (imapfilter-2.7.5)
skipping to change at line 142 skipping to change at line 142
if (ctx == NULL) { if (ctx == NULL) {
error("initiating SSL connection to %s; protocol version " error("initiating SSL connection to %s; protocol version "
"not supported by current build", ssn->server); "not supported by current build", ssn->server);
goto fail; goto fail;
} }
if (!(ssn->sslconn = SSL_new(ctx))) if (!(ssn->sslconn = SSL_new(ctx)))
goto fail; goto fail;
if (get_option_boolean("certificates")) { if (get_option_boolean("hostnames")) {
#if OPENSSL_VERSION_NUMBER >= 0x10100000L #if OPENSSL_VERSION_NUMBER >= 0x10100000L
SSL_set_hostflags(ssn->sslconn, SSL_set_hostflags(ssn->sslconn,
X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS); X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS);
if (!SSL_set1_host(ssn->sslconn, ssn->server)) { if (!SSL_set1_host(ssn->sslconn, ssn->server)) {
error("failed setting hostname validation to " error("failed setting hostname validation to "
"%s; %s\n ", ssn->server, "%s; %s\n ", ssn->server,
ERR_error_string(ERR_get_error(), NULL)); ERR_error_string(ERR_get_error(), NULL));
goto fail; goto fail;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)