| // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef NET_BASE_X509_UTIL_OPENSSL_H_ |
| #define NET_BASE_X509_UTIL_OPENSSL_H_ |
| #include <openssl/asn1.h> |
| #include <openssl/x509v3.h> |
| #include "net/base/net_export.h" |
| // A collection of helper functions to fetch data from OpenSSL X509 certificates |
| // into more convenient std / base datatypes. |
| bool NET_EXPORT ParsePrincipalKeyAndValueByIndex(X509_NAME* name, |
| bool NET_EXPORT ParsePrincipalValueByIndex(X509_NAME* name, |
| bool NET_EXPORT ParsePrincipalValueByNID(X509_NAME* name, |
| bool NET_EXPORT ParseDate(ASN1_TIME* x509_time, base::Time* time); |
| #endif // NET_BASE_X509_UTIL_OPENSSL_H_ |