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

Side by Side Diff: net/cert/cert_verify_result.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_CERT_CERT_VERIFY_RESULT_H_ 5 #ifndef NET_CERT_CERT_VERIFY_RESULT_H_
6 #define NET_CERT_CERT_VERIFY_RESULT_H_ 6 #define NET_CERT_CERT_VERIFY_RESULT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 #include "net/cert/cert_status_flags.h" 12 #include "net/cert/cert_status_flags.h"
13 #include "net/cert/x509_cert_types.h" 13 #include "net/cert/x509_cert_types.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class X509Certificate; 17 class X509Certificate;
18 18
19 // The result of certificate verification. 19 // The result of certificate verification.
20 class NET_EXPORT CertVerifyResult { 20 class NET_EXPORT CertVerifyResult {
21 public: 21 public:
22 CertVerifyResult(); 22 CertVerifyResult();
23 ~CertVerifyResult(); 23 ~CertVerifyResult();
24 24
25 void Reset(); 25 void Reset();
26 26
27 // Copies from |other| to |this|. 27 // Copies from |other| to |this|.
28 void CopyFrom(const CertVerifyResult& other) { 28 void CopyFrom(const CertVerifyResult& other) { *this = other; }
29 *this = other;
30 }
31 29
32 // The certificate and chain that was constructed during verification. 30 // The certificate and chain that was constructed during verification.
33 // Note that the though the verified certificate will match the originally 31 // Note that the though the verified certificate will match the originally
34 // supplied certificate, the intermediate certificates stored within may 32 // supplied certificate, the intermediate certificates stored within may
35 // be substantially different. In the event of a verification failure, this 33 // be substantially different. In the event of a verification failure, this
36 // will contain the chain as supplied by the server. This may be NULL if 34 // will contain the chain as supplied by the server. This may be NULL if
37 // running within the sandbox. 35 // running within the sandbox.
38 scoped_refptr<X509Certificate> verified_cert; 36 scoped_refptr<X509Certificate> verified_cert;
39 37
40 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h. Note that 38 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h. Note that
(...skipping 23 matching lines...) Expand all
64 bool is_issued_by_additional_trust_anchor; 62 bool is_issued_by_additional_trust_anchor;
65 63
66 // True if a fallback to the common name was used when matching the host 64 // True if a fallback to the common name was used when matching the host
67 // name, rather than using the subjectAltName. 65 // name, rather than using the subjectAltName.
68 bool common_name_fallback_used; 66 bool common_name_fallback_used;
69 }; 67 };
70 68
71 } // namespace net 69 } // namespace net
72 70
73 #endif // NET_CERT_CERT_VERIFY_RESULT_H_ 71 #endif // NET_CERT_CERT_VERIFY_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698