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 #include "chrome/common/net/x509_certificate_model.h" | 5 #include "chrome/common/net/x509_certificate_model.h" |
6 | 6 |
7 #include <unicode/uidna.h> | 7 #include <unicode/uidna.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ret.push_back(hex_separator); | 58 ret.push_back(hex_separator); |
59 } | 59 } |
60 } | 60 } |
61 return ret; | 61 return ret; |
62 } | 62 } |
63 | 63 |
64 std::string ProcessRawBytes(const unsigned char* data, size_t data_length) { | 64 std::string ProcessRawBytes(const unsigned char* data, size_t data_length) { |
65 return ProcessRawBytesWithSeparators(data, data_length, ' ', '\n'); | 65 return ProcessRawBytesWithSeparators(data, data_length, ' ', '\n'); |
66 } | 66 } |
67 | 67 |
68 #if defined(USE_NSS) | 68 #if defined(USE_NSS_CERTS) |
69 std::string ProcessRawBits(const unsigned char* data, size_t data_length) { | 69 std::string ProcessRawBits(const unsigned char* data, size_t data_length) { |
70 return ProcessRawBytes(data, (data_length + 7) / 8); | 70 return ProcessRawBytes(data, (data_length + 7) / 8); |
71 } | 71 } |
72 #endif // USE_NSS | 72 #endif // USE_NSS_CERTS |
73 | 73 |
74 } // namespace x509_certificate_model | 74 } // namespace x509_certificate_model |
75 | 75 |
OLD | NEW |