| 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/cert/cert_type.h" | 8 #include "net/cert/cert_type.h" |
| 9 #include "net/cert/x509_certificate.h" | 9 #include "net/cert/x509_certificate.h" |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // line separated using |line_separator|. | 106 // line separated using |line_separator|. |
| 107 std::string ProcessRawBytesWithSeparators(const unsigned char* data, | 107 std::string ProcessRawBytesWithSeparators(const unsigned char* data, |
| 108 size_t data_length, | 108 size_t data_length, |
| 109 char hex_separator, | 109 char hex_separator, |
| 110 char line_separator); | 110 char line_separator); |
| 111 | 111 |
| 112 // Format a buffer as a space separated string, with 16 bytes on each line. | 112 // Format a buffer as a space separated string, with 16 bytes on each line. |
| 113 std::string ProcessRawBytes(const unsigned char* data, | 113 std::string ProcessRawBytes(const unsigned char* data, |
| 114 size_t data_length); | 114 size_t data_length); |
| 115 | 115 |
| 116 #if defined(USE_NSS) | 116 #if defined(USE_NSS_CERTS) |
| 117 // Format a buffer as a space separated string, with 16 bytes on each line. | 117 // Format a buffer as a space separated string, with 16 bytes on each line. |
| 118 // |data_length| is the length in bits. | 118 // |data_length| is the length in bits. |
| 119 std::string ProcessRawBits(const unsigned char* data, | 119 std::string ProcessRawBits(const unsigned char* data, |
| 120 size_t data_length); | 120 size_t data_length); |
| 121 #endif // USE_NSS | 121 #endif // USE_NSS_CERTS |
| 122 | 122 |
| 123 } // namespace x509_certificate_model | 123 } // namespace x509_certificate_model |
| 124 | 124 |
| 125 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ | 125 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ |
| OLD | NEW |