]> git.sur5r.net Git - openldap/commitdiff
ITS#6791 fix cert usage types/values - from Rich Megginson @ Red Hat
authorHoward Chu <hyc@openldap.org>
Thu, 27 Jan 2011 21:34:35 +0000 (21:34 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 27 Jan 2011 21:34:35 +0000 (21:34 +0000)
libraries/libldap/tls_m.c

index f7840b26902d7b50df08e49afc1351afdafa8c8a..3091d8aa30ace1000b00f99d1185e9c3cacc60b9 100644 (file)
@@ -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 ),