diff options
-rw-r--r-- | crypto/openssl_util.h | 3 | ||||
-rw-r--r-- | net/base/x509_util_openssl.h | 20 |
2 files changed, 15 insertions, 8 deletions
diff --git a/crypto/openssl_util.h b/crypto/openssl_util.h index 6c1d73b..3f89f98 100644 --- a/crypto/openssl_util.h +++ b/crypto/openssl_util.h @@ -8,6 +8,7 @@ #include "base/basictypes.h" #include "base/location.h" +#include "crypto/crypto_export.h" namespace crypto { @@ -80,7 +81,7 @@ class ScopedOpenSSLSafeSizeBuffer { // before any other OpenSSL functions. // This function is thread-safe, and OpenSSL will only ever be initialized once. // OpenSSL will be properly shut down on program exit. -void EnsureOpenSSLInit(); +void CRYPTO_EXPORT EnsureOpenSSLInit(); // Drains the OpenSSL ERR_get_error stack. On a debug build the error codes // are send to VLOG(1), on a release build they are disregarded. In most diff --git a/net/base/x509_util_openssl.h b/net/base/x509_util_openssl.h index 7faa008..fbe6336 100644 --- a/net/base/x509_util_openssl.h +++ b/net/base/x509_util_openssl.h @@ -12,6 +12,8 @@ #include <string> #include <vector> +#include "net/base/net_export.h" + namespace base { class Time; } // namespace base @@ -22,16 +24,20 @@ namespace net { // into more convenient std / base datatypes. namespace x509_util { -bool ParsePrincipalKeyAndValueByIndex(X509_NAME* name, - int index, - std::string* key, - std::string* value); +bool NET_EXPORT ParsePrincipalKeyAndValueByIndex(X509_NAME* name, + int index, + std::string* key, + std::string* value); -bool ParsePrincipalValueByIndex(X509_NAME* name, int index, std::string* value); +bool NET_EXPORT ParsePrincipalValueByIndex(X509_NAME* name, + int index, + std::string* value); -bool ParsePrincipalValueByNID(X509_NAME* name, int nid, std::string* value); +bool NET_EXPORT ParsePrincipalValueByNID(X509_NAME* name, + int nid, + std::string* value); -bool ParseDate(ASN1_TIME* x509_time, base::Time* time); +bool NET_EXPORT ParseDate(ASN1_TIME* x509_time, base::Time* time); } // namespace x509_util |