From: Howard Chu Date: Thu, 27 Jan 2011 21:34:35 +0000 (+0000) Subject: ITS#6791 fix cert usage types/values - from Rich Megginson @ Red Hat X-Git-Tag: MIGRATION_CVS2GIT~176 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba70ec8b2c41c21008a55e2c22c0a0e563ba1b89;p=openldap ITS#6791 fix cert usage types/values - from Rich Megginson @ Red Hat --- 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 ),