Index: res/res_calendar_caldav.c =================================================================== --- res/res_calendar_caldav.c (revision 244504) +++ res/res_calendar_caldav.c (working copy) @@ -630,7 +630,7 @@ pvt->session = ne_session_create(pvt->uri.scheme, pvt->uri.host, pvt->uri.port); ne_set_server_auth(pvt->session, auth_credentials, pvt); - if (!strncasecmp(pvt->uri.scheme, "https", sizeof(pvt->uri.scheme))) { + if (!strcasecmp(pvt->uri.scheme, "https")) { ne_ssl_trust_default_ca(pvt->session); ne_ssl_set_verify(pvt->session, verify_cert, NULL); } Index: res/res_calendar_exchange.c =================================================================== --- res/res_calendar_exchange.c (revision 244504) +++ res/res_calendar_exchange.c (working copy) @@ -694,7 +694,7 @@ pvt->session = ne_session_create(pvt->uri.scheme, pvt->uri.host, pvt->uri.port); ne_set_server_auth(pvt->session, auth_credentials, pvt); - if (!strncasecmp(pvt->uri.scheme, "https", sizeof(pvt->uri.scheme))) { + if (!strcasecmp(pvt->uri.scheme, "https")) { ne_ssl_trust_default_ca(pvt->session); } Index: res/res_calendar_icalendar.c =================================================================== --- res/res_calendar_icalendar.c (revision 244504) +++ res/res_calendar_icalendar.c (working copy) @@ -413,7 +413,7 @@ pvt->session = ne_session_create(pvt->uri.scheme, pvt->uri.host, pvt->uri.port); ne_set_server_auth(pvt->session, auth_credentials, pvt); - if (!strncasecmp(pvt->uri.scheme, "https", sizeof(pvt->uri.scheme))) { + if (!strcasecmp(pvt->uri.scheme, "https")) { ne_ssl_trust_default_ca(pvt->session); }