Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: net/cert/x509_util_openssl.h

Issue 576233002: Only use the platform cert in verification in SSLClientSocketOpenSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't export two versions Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cert/x509_certificate_openssl.cc ('k') | net/cert/x509_util_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/x509_util_openssl.h
diff --git a/net/cert/x509_util_openssl.h b/net/cert/x509_util_openssl.h
index 8dc4473514ad1fee613dc4c6891bf0eef07903e9..c77aed07a7a88e693aaed38b2b1728a4db9dac7a 100644
--- a/net/cert/x509_util_openssl.h
+++ b/net/cert/x509_util_openssl.h
@@ -11,6 +11,7 @@
#include <string>
#include <vector>
+#include "base/strings/string_piece.h"
#include "net/base/net_export.h"
namespace base {
@@ -42,6 +43,15 @@ bool NET_EXPORT ParsePrincipalValueByNID(X509_NAME* name,
bool NET_EXPORT ParseDate(ASN1_TIME* x509_time, base::Time* time);
+// DER-encodes |x509|, caching the encoding in a structure owned by
+// the X509. On success, returns true, and sets |*out_der| to point to
+// the encoding. The StringPiece is valid as long as |x509| is not
+// freed.
+//
+// Note: this caches the encoding, so |x509| must not be modified
+// after the first call to this function.
+bool NET_EXPORT GetDER(X509* x509, base::StringPiece* out_der);
+
} // namespace x509_util
} // namespace net
« no previous file with comments | « net/cert/x509_certificate_openssl.cc ('k') | net/cert/x509_util_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698