/pidgin/main: 703e982d8d18: Fix building with NSS 3.10.8 (which ...
Daniel Atallah
datallah at pidgin.im
Wed Nov 5 00:10:09 EST 2014
Changeset: 703e982d8d184341e2db7d9617daae198eeb96d1
Author: Daniel Atallah <datallah at pidgin.im>
Date: 2014-11-05 00:07 -0500
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/703e982d8d18
Description:
Fix building with NSS 3.10.8 (which is what squeeze has and is probably the oldest we need to worry about)
diffstat:
libpurple/plugins/ssl/ssl-nss.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (47 lines):
diff --git a/libpurple/plugins/ssl/ssl-nss.c b/libpurple/plugins/ssl/ssl-nss.c
--- a/libpurple/plugins/ssl/ssl-nss.c
+++ b/libpurple/plugins/ssl/ssl-nss.c
@@ -150,18 +150,20 @@ static void ssl_nss_log_ciphers(void) {
rv = SSL_CipherPrefGetDefault(suite, &enabled);
if (rv != SECSuccess) {
- err = PR_GetError();
+ gchar *error_txt = get_error_text();
purple_debug_warning("nss",
"SSL_CipherPrefGetDefault didn't like value 0x%04x: %s\n",
- suite, PORT_ErrorToString(err));
+ suite, error_txt);
+ g_free(error_txt);
continue;
}
rv = SSL_GetCipherSuiteInfo(suite, &info, (int)(sizeof info));
if (rv != SECSuccess) {
- err = PR_GetError();
+ gchar *error_txt = get_error_text();
purple_debug_warning("nss",
"SSL_GetCipherSuiteInfo didn't like value 0x%04x: %s\n",
- suite, PORT_ErrorToString(err));
+ suite, error_txt);
+ g_free(error_txt);
continue;
}
purple_debug_info("nss", "Cipher - %s: %s\n",
@@ -179,7 +181,7 @@ ssl_nss_init_nss(void)
PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
NSS_NoDB_Init(".");
-#if (NSS_VMAJOR == 3 && (NSS_VMINOR < 15 || (NSS_VMINOR == 15 && NSS_VMICRO < 2)))
+#if (NSS_VMAJOR == 3 && (NSS_VMINOR < 15 || (NSS_VMINOR == 15 && NSS_VPATCH < 2)))
NSS_SetDomesticPolicy();
#endif /* NSS < 3.15.2 */
@@ -1128,7 +1130,9 @@ static void x509_verify_cert(PurpleCerti
case SEC_ERROR_CA_CERT_INVALID:
case SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE:
case SEC_ERROR_UNTRUSTED_CERT:
+#ifdef SEC_ERROR_CERT_SIGNATURE_ALGORITHM_DISABLED
case SEC_ERROR_CERT_SIGNATURE_ALGORITHM_DISABLED:
+#endif
if (!self_signed) {
*flags |= PURPLE_CERTIFICATE_INVALID_CHAIN;
}
More information about the Commits
mailing list