Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(642)

Side by Side Diff: net/cert/cert_verify_proc_openssl.cc

Issue 2735733003: Disable commonName matching for certificates (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/cert/cert_verify_proc_mac.cc ('k') | net/cert/cert_verify_proc_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/cert/cert_verify_proc_mac.cc ('k') | net/cert/cert_verify_proc_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698