ne_session.c | ne_session.c | |||
---|---|---|---|---|
skipping to change at line 568 | skipping to change at line 568 | |||
{ NE_SSL_BADCHAIN, N_("bad certificate chain") }, | { NE_SSL_BADCHAIN, N_("bad certificate chain") }, | |||
{ NE_SSL_REVOKED, N_("certificate has been revoked") }, | { NE_SSL_REVOKED, N_("certificate has been revoked") }, | |||
{ 0, NULL } | { 0, NULL } | |||
}; | }; | |||
int n, flag = 0; | int n, flag = 0; | |||
strcpy(sess->error, _("Server certificate verification failed: ")); | strcpy(sess->error, _("Server certificate verification failed: ")); | |||
for (n = 0; reasons[n].bit; n++) { | for (n = 0; reasons[n].bit; n++) { | |||
if (failures & reasons[n].bit) { | if (failures & reasons[n].bit) { | |||
if (flag) strncat(sess->error, ", ", sizeof sess->error); | if (flag) strncat(sess->error, ", ", sizeof sess->error - 1); | |||
strncat(sess->error, _(reasons[n].str), sizeof sess->error); | strncat(sess->error, _(reasons[n].str), sizeof sess->error - 1); | |||
flag = 1; | flag = 1; | |||
} | } | |||
} | } | |||
} | } | |||
/* This doesn't actually implement complete RFC 2818 logic; omits | /* This doesn't actually implement complete RFC 2818 logic; omits | |||
* "f*.example.com" support for simplicity. */ | * "f*.example.com" support for simplicity. */ | |||
int ne__ssl_match_hostname(const char *cn, size_t cnlen, const char *hostna me) | int ne__ssl_match_hostname(const char *cn, size_t cnlen, const char *hostna me) | |||
{ | { | |||
const char *dot; | const char *dot; | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |