summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-14 11:52:47 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-14 11:52:47 +0000
commitb29af7d99bd1aede0ebb49e940dcb2fa319767cc (patch)
treef50c9516c16bb2198f485b8ff6686b6055b681a9 /net/socket
parente7931f3b1a2fd07b23e77b30c41770912f0784c3 (diff)
downloadchromium_src-b29af7d99bd1aede0ebb49e940dcb2fa319767cc.zip
chromium_src-b29af7d99bd1aede0ebb49e940dcb2fa319767cc.tar.gz
chromium_src-b29af7d99bd1aede0ebb49e940dcb2fa319767cc.tar.bz2
Fix openssl after singleton refactor
BUG=65298 TEST=Builds Review URL: http://codereview.chromium.org/5767005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/ssl_client_socket_openssl.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/socket/ssl_client_socket_openssl.cc b/net/socket/ssl_client_socket_openssl.cc
index 145aec9..ab4ba6c 100644
--- a/net/socket/ssl_client_socket_openssl.cc
+++ b/net/socket/ssl_client_socket_openssl.cc
@@ -281,7 +281,7 @@ class SSLSessionCache {
class SSLContext {
public:
- static SSLContext* Get() { return Singleton<SSLContext>::get(); }
+ static SSLContext* GetInstance() { return Singleton<SSLContext>::get(); }
SSL_CTX* ssl_ctx() { return ssl_ctx_.get(); }
SSLSessionCache* session_cache() { return &session_cache_; }
@@ -322,7 +322,7 @@ class SSLContext {
}
static int NewSessionCallbackStatic(SSL* ssl, SSL_SESSION* session) {
- return Get()->NewSessionCallback(ssl, session);
+ return GetInstance()->NewSessionCallback(ssl, session);
}
int NewSessionCallback(SSL* ssl, SSL_SESSION* session) {
@@ -332,7 +332,7 @@ class SSLContext {
}
static void RemoveSessionCallbackStatic(SSL_CTX* ctx, SSL_SESSION* session) {
- return Get()->RemoveSessionCallback(ctx, session);
+ return GetInstance()->RemoveSessionCallback(ctx, session);
}
void RemoveSessionCallback(SSL_CTX* ctx, SSL_SESSION* session) {
@@ -341,7 +341,7 @@ class SSLContext {
}
static int ClientCertCallback(SSL* ssl, X509** x509, EVP_PKEY** pkey) {
- SSLClientSocketOpenSSL* socket = Get()->GetClientSocketFromSSL(ssl);
+ SSLClientSocketOpenSSL* socket = GetInstance()->GetClientSocketFromSSL(ssl);
CHECK(socket);
return socket->ClientCertRequestCallback(ssl, x509, pkey);
}
@@ -350,7 +350,7 @@ class SSLContext {
unsigned char** out, unsigned char* outlen,
const unsigned char* in,
unsigned int inlen, void* arg) {
- SSLClientSocketOpenSSL* socket = Get()->GetClientSocketFromSSL(ssl);
+ SSLClientSocketOpenSSL* socket = GetInstance()->GetClientSocketFromSSL(ssl);
return socket->SelectNextProtoCallback(out, outlen, in, inlen);
}
@@ -412,7 +412,7 @@ bool SSLClientSocketOpenSSL::Init() {
DCHECK(!ssl_);
DCHECK(!transport_bio_);
- SSLContext* context = SSLContext::Get();
+ SSLContext* context = SSLContext::GetInstance();
base::OpenSSLErrStackTracer err_tracer(FROM_HERE);
ssl_ = SSL_new(context->ssl_ctx());