Index: net/base/x509_certificate_openssl.cc |
=================================================================== |
--- net/base/x509_certificate_openssl.cc (revision 102325) |
+++ net/base/x509_certificate_openssl.cc (working copy) |
@@ -134,7 +134,7 @@ |
} |
// Maps X509_STORE_CTX_get_error() return values to our cert status flags. |
-int MapCertErrorToCertStatus(int err) { |
+CertStatus MapCertErrorToCertStatus(int err) { |
switch (err) { |
case X509_V_ERR_SUBJECT_ISSUER_MISMATCH: |
return CERT_STATUS_COMMON_NAME_INVALID; |
@@ -463,7 +463,7 @@ |
if (X509_verify_cert(ctx.get()) != 1) { |
int x509_error = X509_STORE_CTX_get_error(ctx.get()); |
- int cert_status = MapCertErrorToCertStatus(x509_error); |
+ CertStatus cert_status = MapCertErrorToCertStatus(x509_error); |
LOG(ERROR) << "X509 Verification error " |
<< X509_verify_cert_error_string(x509_error) |
<< " : " << x509_error |