Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: crypto/openssl_util.h

Issue 274783002: Implement SSL server socket over OpenSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary comment. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/BUILD.gn » ('j') | net/socket/ssl_server_socket_nss.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CRYPTO_OPENSSL_UTIL_H_ 5 #ifndef CRYPTO_OPENSSL_UTIL_H_
6 #define CRYPTO_OPENSSL_UTIL_H_ 6 #define CRYPTO_OPENSSL_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "crypto/crypto_export.h" 10 #include "crypto/crypto_export.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 size_t output_len_; 75 size_t output_len_;
76 76
77 // Temporary buffer writen into in the case where the caller's 77 // Temporary buffer writen into in the case where the caller's
78 // buffer is not of sufficient size. 78 // buffer is not of sufficient size.
79 unsigned char min_sized_buffer_[MIN_SIZE]; 79 unsigned char min_sized_buffer_[MIN_SIZE];
80 80
81 DISALLOW_COPY_AND_ASSIGN(ScopedOpenSSLSafeSizeBuffer); 81 DISALLOW_COPY_AND_ASSIGN(ScopedOpenSSLSafeSizeBuffer);
82 }; 82 };
83 83
84 // Initialize OpenSSL if it isn't already initialized. This must be called 84 // Initialize OpenSSL if it isn't already initialized. This must be called
85 // before any other OpenSSL functions. 85 // before any other OpenSSL functions though it is safe and cheap to called this
wtc 2014/05/16 19:36:14 Nit: called => call
byungchul 2014/05/16 19:50:32 Done.
86 // multiple times.
86 // This function is thread-safe, and OpenSSL will only ever be initialized once. 87 // This function is thread-safe, and OpenSSL will only ever be initialized once.
87 // OpenSSL will be properly shut down on program exit. 88 // OpenSSL will be properly shut down on program exit.
88 void CRYPTO_EXPORT EnsureOpenSSLInit(); 89 void CRYPTO_EXPORT EnsureOpenSSLInit();
89 90
90 // Drains the OpenSSL ERR_get_error stack. On a debug build the error codes 91 // Drains the OpenSSL ERR_get_error stack. On a debug build the error codes
91 // are send to VLOG(1), on a release build they are disregarded. In most 92 // are send to VLOG(1), on a release build they are disregarded. In most
92 // cases you should pass FROM_HERE as the |location|. 93 // cases you should pass FROM_HERE as the |location|.
93 void CRYPTO_EXPORT ClearOpenSSLERRStack( 94 void CRYPTO_EXPORT ClearOpenSSLERRStack(
94 const tracked_objects::Location& location); 95 const tracked_objects::Location& location);
95 96
(...skipping 14 matching lines...) Expand all
110 111
111 private: 112 private:
112 const tracked_objects::Location location_; 113 const tracked_objects::Location location_;
113 114
114 DISALLOW_IMPLICIT_CONSTRUCTORS(OpenSSLErrStackTracer); 115 DISALLOW_IMPLICIT_CONSTRUCTORS(OpenSSLErrStackTracer);
115 }; 116 };
116 117
117 } // namespace crypto 118 } // namespace crypto
118 119
119 #endif // CRYPTO_OPENSSL_UTIL_H_ 120 #endif // CRYPTO_OPENSSL_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | net/BUILD.gn » ('j') | net/socket/ssl_server_socket_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698