Skip to content
Browse files

don't check certificates on starttls

  • Loading branch information...
1 parent ad9d367 commit eab6f83e10918f9f1853736e58157acfdb0c8a80 @dinhviethoa dinhviethoa committed Mar 21, 2012
View
1 src/low-level/imap/mailimap_socket.c
@@ -171,6 +171,7 @@ static int mailimap_cfsocket_starttls(mailimap * f)
return r;
}
+ mailstream_cfstream_set_ssl_verification_mask(f->imap_stream, MAILSTREAM_CFSTREAM_SSL_NO_VERIFICATION);
r = mailstream_cfstream_set_ssl_enabled(f->imap_stream, 1);
if (r < 0) {
return MAILIMAP_ERROR_SSL;
View
1 src/low-level/pop3/mailpop3_socket.c
@@ -164,6 +164,7 @@ static int mailpop3_cfsocket_starttls(mailpop3 * f)
return r;
}
+ mailstream_cfstream_set_ssl_verification_mask(f->pop3_stream, MAILSTREAM_CFSTREAM_SSL_NO_VERIFICATION);
r = mailstream_cfstream_set_ssl_enabled(f->pop3_stream, 1);
if (r < 0) {
return MAILPOP3_ERROR_SSL;
View
1 src/low-level/smtp/mailsmtp_socket.c
@@ -156,6 +156,7 @@ static int mailsmtp_cfsocket_starttls(mailsmtp * session)
if (r != MAILSMTP_NO_ERROR)
return r;
+ mailstream_cfstream_set_ssl_verification_mask(session->stream, MAILSTREAM_CFSTREAM_SSL_NO_VERIFICATION);
r = mailstream_cfstream_set_ssl_enabled(session->stream, 1);
if (r < 0) {
return MAILSMTP_ERROR_SSL;

0 comments on commit eab6f83

Please sign in to comment.
Something went wrong with that request. Please try again.