OpenSSL component build fixes.
BUG=none TEST=build with component=shared_library use_openssl=1 Review URL: http://codereview.chromium.org/8166003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104342 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user