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 #ifndef NET_CERT_X509_CERTIFICATE_H_ | 5 #ifndef NET_CERT_X509_CERTIFICATE_H_ |
6 #define NET_CERT_X509_CERTIFICATE_H_ | 6 #define NET_CERT_X509_CERTIFICATE_H_ |
7 | 7 |
8 #include <string.h> | 8 #include <string.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
18 #include "net/cert/cert_type.h" | 18 #include "net/cert/cert_type.h" |
19 #include "net/cert/x509_cert_types.h" | 19 #include "net/cert/x509_cert_types.h" |
20 | 20 |
21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
22 #include <windows.h> | 22 #include <windows.h> |
23 #include <wincrypt.h> | 23 #include "crypto/wincrypt.h" |
24 | |
Ryan Sleevi
2014/10/29 20:40:24
no newline (here or line 28)
davidben
2014/10/29 22:49:58
Done.
| |
24 #elif defined(OS_MACOSX) | 25 #elif defined(OS_MACOSX) |
25 #include <CoreFoundation/CFArray.h> | 26 #include <CoreFoundation/CFArray.h> |
26 #include <Security/SecBase.h> | 27 #include <Security/SecBase.h> |
27 | 28 |
28 #elif defined(USE_OPENSSL_CERTS) | 29 #elif defined(USE_OPENSSL_CERTS) |
29 // Forward declaration; real one in <x509.h> | 30 // Forward declaration; real one in <x509.h> |
30 typedef struct x509_st X509; | 31 typedef struct x509_st X509; |
31 typedef struct x509_store_st X509_STORE; | 32 typedef struct x509_store_st X509_STORE; |
32 #elif defined(USE_NSS) | 33 #elif defined(USE_NSS) |
33 // Forward declaration; real one in <cert.h> | 34 // Forward declaration; real one in <cert.h> |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
514 // based on the type of the certificate. | 515 // based on the type of the certificate. |
515 std::string default_nickname_; | 516 std::string default_nickname_; |
516 #endif | 517 #endif |
517 | 518 |
518 DISALLOW_COPY_AND_ASSIGN(X509Certificate); | 519 DISALLOW_COPY_AND_ASSIGN(X509Certificate); |
519 }; | 520 }; |
520 | 521 |
521 } // namespace net | 522 } // namespace net |
522 | 523 |
523 #endif // NET_CERT_X509_CERTIFICATE_H_ | 524 #endif // NET_CERT_X509_CERTIFICATE_H_ |
OLD | NEW |