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

Side by Side Diff: base/openssl_util.cc

Issue 4691003: Implement symmetric key for openssl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a file Created 10 years, 1 month 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 | Annotate | Revision Log
« base/openssl_util.h ('K') | « base/openssl_util.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "base/openssl_util.h"
7
8 #include <openssl/err.h>
9
10 namespace base {
11
12 void ClearERRStack() {
13 if (logging::DEBUG_MODE && VLOG_IS_ON(1)) {
14 int error_num = ERR_get_error();
15 if (error_num == 0)
16 return;
17
18 DVLOG(1) << "SSL error stack:";
Ryan Sleevi 2010/11/11 18:07:15 nit: s/SSL/OpenSSL/ There is a separate SSL erro
joth 2010/11/11 19:54:36 Done.
19 char buf[140];
20 do {
21 ERR_error_string_n(error_num, buf, arraysize(buf));
22 DVLOG(1) << "\t" << error_num << ": " << buf;
23 error_num = ERR_get_error();
24 } while (error_num != 0);
25 } else {
26 ERR_clear_error();
27 }
28 }
29
30 } // namespace base
OLDNEW
« base/openssl_util.h ('K') | « base/openssl_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698