| 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 <stddef.h> |
| 9 |
| 8 #include "net/cert/cert_type.h" | 10 #include "net/cert/cert_type.h" |
| 9 #include "net/cert/x509_certificate.h" | 11 #include "net/cert/x509_certificate.h" |
| 10 | 12 |
| 11 // This namespace defines a set of functions to be used in UI-related bits of | 13 // 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 | 14 // X509 certificates. It decouples the UI from the underlying crypto library |
| 13 // (currently NSS or OpenSSL - in development). | 15 // (currently NSS or OpenSSL - in development). |
| 14 // This is currently only used by linux, as mac / windows use their own native | 16 // This is currently only used by linux, as mac / windows use their own native |
| 15 // certificate viewers and crypto libraries. | 17 // certificate viewers and crypto libraries. |
| 16 namespace x509_certificate_model { | 18 namespace x509_certificate_model { |
| 17 | 19 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 #if defined(USE_NSS_CERTS) | 118 #if defined(USE_NSS_CERTS) |
| 117 // Format a buffer as a space separated string, with 16 bytes on each line. | 119 // Format a buffer as a space separated string, with 16 bytes on each line. |
| 118 // |data_length| is the length in bits. | 120 // |data_length| is the length in bits. |
| 119 std::string ProcessRawBits(const unsigned char* data, | 121 std::string ProcessRawBits(const unsigned char* data, |
| 120 size_t data_length); | 122 size_t data_length); |
| 121 #endif // USE_NSS_CERTS | 123 #endif // USE_NSS_CERTS |
| 122 | 124 |
| 123 } // namespace x509_certificate_model | 125 } // namespace x509_certificate_model |
| 124 | 126 |
| 125 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ | 127 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ |
| OLD | NEW |