From ba70ec8b2c41c21008a55e2c22c0a0e563ba1b89 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 27 Jan 2011 21:34:35 +0000 Subject: [PATCH] ITS#6791 fix cert usage types/values - from Rich Megginson @ Red Hat --- libraries/libldap/tls_m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c index f7840b2690..3091d8aa30 100644 --- a/libraries/libldap/tls_m.c +++ b/libraries/libldap/tls_m.c @@ -932,7 +932,7 @@ tlsm_cert_is_self_issued( CERTCertificate *cert ) static SECStatus tlsm_verify_cert(CERTCertDBHandle *handle, CERTCertificate *cert, void *pinarg, - PRBool checksig, SECCertUsage certUsage, int errorToIgnore ) + PRBool checksig, SECCertificateUsage certUsage, int errorToIgnore ) { CERTVerifyLog verifylog; SECStatus ret = SECSuccess; @@ -1021,7 +1021,7 @@ static SECStatus tlsm_auth_cert_handler(void *arg, PRFileDesc *fd, PRBool checksig, PRBool isServer) { - SECCertUsage certUsage = isServer ? certUsageSSLClient : certUsageSSLServer; + SECCertificateUsage certUsage = isServer ? certificateUsageSSLClient : certificateUsageSSLServer; SECStatus ret = SECSuccess; ret = tlsm_verify_cert( (CERTCertDBHandle *)arg, SSL_PeerCertificate( fd ), -- 2.39.5