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

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

Issue 6969077: net: Add NET_API to net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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_BASE_CERT_VERIFY_RESULT_H_ 5 #ifndef NET_BASE_CERT_VERIFY_RESULT_H_
6 #define NET_BASE_CERT_VERIFY_RESULT_H_ 6 #define NET_BASE_CERT_VERIFY_RESULT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "net/base/net_api.h"
11 #include "net/base/x509_cert_types.h" 12 #include "net/base/x509_cert_types.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 // The result of certificate verification. Eventually this may contain the 16 // The result of certificate verification. Eventually this may contain the
16 // certificate chain that was constructed during certificate verification. 17 // certificate chain that was constructed during certificate verification.
17 class CertVerifyResult { 18 class NET_API CertVerifyResult {
18 public: 19 public:
19 CertVerifyResult(); 20 CertVerifyResult();
20 ~CertVerifyResult(); 21 ~CertVerifyResult();
21 22
22 void Reset(); 23 void Reset();
23 24
24 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h 25 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h
25 int cert_status; 26 int cert_status;
26 27
27 // Properties of the certificate chain. 28 // Properties of the certificate chain.
(...skipping 11 matching lines...) Expand all
39 // is_issued_by_known_root is true if we recognise the root CA as a standard 40 // is_issued_by_known_root is true if we recognise the root CA as a standard
40 // root. If it isn't then it's probably the case that this certificate was 41 // root. If it isn't then it's probably the case that this certificate was
41 // generated by a MITM proxy whose root has been installed locally. This is 42 // generated by a MITM proxy whose root has been installed locally. This is
42 // meaningless if the certificate was not trusted. 43 // meaningless if the certificate was not trusted.
43 bool is_issued_by_known_root; 44 bool is_issued_by_known_root;
44 }; 45 };
45 46
46 } // namespace net 47 } // namespace net
47 48
48 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ 49 #endif // NET_BASE_CERT_VERIFY_RESULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698