OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_SOCKET_OPENSSL_SSL_UTIL_H_ | 5 #ifndef NET_SSL_OPENSSL_SSL_UTIL_H_ |
6 #define NET_SOCKET_OPENSSL_SSL_UTIL_H_ | 6 #define NET_SSL_OPENSSL_SSL_UTIL_H_ |
7 | 7 |
8 namespace crypto { | 8 namespace crypto { |
9 class OpenSSLErrStackTracer; | 9 class OpenSSLErrStackTracer; |
10 } | 10 } |
11 | 11 |
12 namespace tracked_objects { | 12 namespace tracked_objects { |
13 class Location; | 13 class Location; |
14 } | 14 } |
15 | 15 |
16 namespace net { | 16 namespace net { |
(...skipping 13 matching lines...) Expand all Loading... |
30 }; | 30 }; |
31 | 31 |
32 // Converts an OpenSSL error code into a net error code, walking the OpenSSL | 32 // Converts an OpenSSL error code into a net error code, walking the OpenSSL |
33 // error stack if needed. Note that |tracer| is not currently used in the | 33 // error stack if needed. Note that |tracer| is not currently used in the |
34 // implementation, but is passed in anyway as this ensures the caller will clear | 34 // implementation, but is passed in anyway as this ensures the caller will clear |
35 // any residual codes left on the error stack. | 35 // any residual codes left on the error stack. |
36 int MapOpenSSLError(int err, const crypto::OpenSSLErrStackTracer& tracer); | 36 int MapOpenSSLError(int err, const crypto::OpenSSLErrStackTracer& tracer); |
37 | 37 |
38 } // namespace net | 38 } // namespace net |
39 | 39 |
40 #endif // NET_SOCKET_OPENSSL_SSL_UTIL_H_ | 40 #endif // NET_SSL_OPENSSL_SSL_UTIL_H_ |
OLD | NEW |