OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/cert/cert_verify_proc_openssl.h" | 5 #include "net/cert/cert_verify_proc_openssl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 LOG(ERROR) << "X509 Verification error " | 207 LOG(ERROR) << "X509 Verification error " |
208 << X509_verify_cert_error_string(x509_error) | 208 << X509_verify_cert_error_string(x509_error) |
209 << " : " << x509_error | 209 << " : " << x509_error |
210 << " : " << X509_STORE_CTX_get_error_depth(ctx.get()) | 210 << " : " << X509_STORE_CTX_get_error_depth(ctx.get()) |
211 << " : " << cert_status; | 211 << " : " << cert_status; |
212 verify_result->cert_status |= cert_status; | 212 verify_result->cert_status |= cert_status; |
213 } | 213 } |
214 | 214 |
215 GetCertChainInfo(ctx.get(), verify_result); | 215 GetCertChainInfo(ctx.get(), verify_result); |
216 AppendPublicKeyHashes(ctx.get(), &verify_result->public_key_hashes); | 216 AppendPublicKeyHashes(ctx.get(), &verify_result->public_key_hashes); |
| 217 |
217 if (IsCertStatusError(verify_result->cert_status)) | 218 if (IsCertStatusError(verify_result->cert_status)) |
218 return MapCertStatusToNetError(verify_result->cert_status); | 219 return MapCertStatusToNetError(verify_result->cert_status); |
219 | 220 |
220 return OK; | 221 return OK; |
221 } | 222 } |
222 | 223 |
223 } // namespace net | 224 } // namespace net |
OLD | NEW |