summaryrefslogtreecommitdiffstats
path: root/chrome/common/net/x509_certificate_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/net/x509_certificate_model.h')
-rw-r--r--chrome/common/net/x509_certificate_model.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/chrome/common/net/x509_certificate_model.h b/chrome/common/net/x509_certificate_model.h
index 351f489..3e4f14f 100644
--- a/chrome/common/net/x509_certificate_model.h
+++ b/chrome/common/net/x509_certificate_model.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_BASE_X509_CERTIFICATE_MODEL_H_
-#define NET_BASE_X509_CERTIFICATE_MODEL_H_
+#ifndef CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
+#define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
#pragma once
#include "net/base/cert_database.h"
@@ -123,6 +123,24 @@ std::string ProcessRawBitsSignatureWrap(
void RegisterDynamicOids();
+// Format a buffer as |hex_separator| separated string, with 16 bytes on each
+// line separated using |line_separator|.
+std::string ProcessRawBytesWithSeparators(const unsigned char* data,
+ size_t data_length,
+ char hex_separator,
+ char line_separator);
+
+// Format a buffer as a space separated string, with 16 bytes on each line.
+std::string ProcessRawBytes(const unsigned char* data,
+ size_t data_length);
+
+#if defined(USE_NSS)
+// Format a buffer as a space separated string, with 16 bytes on each line.
+// |data_length| is the length in bits.
+std::string ProcessRawBits(const unsigned char* data,
+ size_t data_length);
+#endif // USE_NSS
+
} // namespace x509_certificate_model
-#endif // NET_BASE_X509_CERTIFICATE_MODEL_H_
+#endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_