OLD | NEW |
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 CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ | 5 #ifndef CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ |
6 #define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ | 6 #define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ |
7 | 7 |
8 #include "net/base/cert_type.h" | 8 #include "net/cert/cert_type.h" |
9 #include "net/base/x509_certificate.h" | 9 #include "net/cert/x509_certificate.h" |
10 | 10 |
11 // This namespace defines a set of functions to be used in UI-related bits of | 11 // This namespace defines a set of functions to be used in UI-related bits of |
12 // X509 certificates. It decouples the UI from the underlying crypto library | 12 // X509 certificates. It decouples the UI from the underlying crypto library |
13 // (currently NSS or OpenSSL - in development). | 13 // (currently NSS or OpenSSL - in development). |
14 // This is currently only used by linux, as mac / windows use their own native | 14 // This is currently only used by linux, as mac / windows use their own native |
15 // certificate viewers and crypto libraries. | 15 // certificate viewers and crypto libraries. |
16 namespace x509_certificate_model { | 16 namespace x509_certificate_model { |
17 | 17 |
18 std::string GetCertNameOrNickname( | 18 std::string GetCertNameOrNickname( |
19 net::X509Certificate::OSCertHandle cert_handle); | 19 net::X509Certificate::OSCertHandle cert_handle); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 #if defined(USE_NSS) | 141 #if defined(USE_NSS) |
142 // Format a buffer as a space separated string, with 16 bytes on each line. | 142 // Format a buffer as a space separated string, with 16 bytes on each line. |
143 // |data_length| is the length in bits. | 143 // |data_length| is the length in bits. |
144 std::string ProcessRawBits(const unsigned char* data, | 144 std::string ProcessRawBits(const unsigned char* data, |
145 size_t data_length); | 145 size_t data_length); |
146 #endif // USE_NSS | 146 #endif // USE_NSS |
147 | 147 |
148 } // namespace x509_certificate_model | 148 } // namespace x509_certificate_model |
149 | 149 |
150 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ | 150 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ |
OLD | NEW |