summaryrefslogtreecommitdiffstats
path: root/net/socket/openssl_ssl_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/socket/openssl_ssl_util.cc')
-rw-r--r--net/socket/openssl_ssl_util.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/net/socket/openssl_ssl_util.cc b/net/socket/openssl_ssl_util.cc
index 231f77c..a11436c 100644
--- a/net/socket/openssl_ssl_util.cc
+++ b/net/socket/openssl_ssl_util.cc
@@ -4,8 +4,6 @@
#include "net/socket/openssl_ssl_util.h"
-#include <errno.h>
-
#include <openssl/err.h>
#include <openssl/ssl.h>
@@ -41,16 +39,16 @@ class OpenSSLNetErrorLibSingleton {
net_error_lib_ = ERR_get_next_error_library();
}
- unsigned net_error_lib() const { return net_error_lib_; }
+ int net_error_lib() const { return net_error_lib_; }
private:
- unsigned net_error_lib_;
+ int net_error_lib_;
};
base::LazyInstance<OpenSSLNetErrorLibSingleton>::Leaky g_openssl_net_error_lib =
LAZY_INSTANCE_INITIALIZER;
-unsigned OpenSSLNetErrorLib() {
+int OpenSSLNetErrorLib() {
return g_openssl_net_error_lib.Get().net_error_lib();
}
@@ -164,7 +162,7 @@ void OpenSSLPutNetError(const tracked_objects::Location& location, int err) {
NOTREACHED();
err = ERR_INVALID_ARGUMENT;
}
- ERR_put_error(OpenSSLNetErrorLib(), 0, err,
+ ERR_PUT_error(OpenSSLNetErrorLib(), 0, err,
location.file_name(), location.line_number());
}