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

Side by Side Diff: crypto/rsa_private_key_nss.cc

Issue 16123026: Use a direct include of strings headers in crypto/, dbus/, device/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « crypto/rsa_private_key.cc ('k') | crypto/rsa_private_key_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "crypto/rsa_private_key.h" 5 #include "crypto/rsa_private_key.h"
6 6
7 #include <cryptohi.h> 7 #include <cryptohi.h>
8 #include <keyhi.h> 8 #include <keyhi.h>
9 #include <pk11pub.h> 9 #include <pk11pub.h>
10 #include <secmod.h> 10 #include <secmod.h>
11 11
12 #include <list> 12 #include <list>
13 13
14 #include "base/debug/leak_annotations.h" 14 #include "base/debug/leak_annotations.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "crypto/nss_util.h" 18 #include "crypto/nss_util.h"
19 #include "crypto/nss_util_internal.h" 19 #include "crypto/nss_util_internal.h"
20 #include "crypto/scoped_nss_types.h" 20 #include "crypto/scoped_nss_types.h"
21 21
22 // TODO(rafaelw): Consider refactoring common functions and definitions from 22 // TODO(rafaelw): Consider refactoring common functions and definitions from
23 // rsa_private_key_win.cc or using NSS's ASN.1 encoder. 23 // rsa_private_key_win.cc or using NSS's ASN.1 encoder.
24 namespace { 24 namespace {
25 25
26 static bool ReadAttribute(SECKEYPrivateKey* key, 26 static bool ReadAttribute(SECKEYPrivateKey* key,
27 CK_ATTRIBUTE_TYPE type, 27 CK_ATTRIBUTE_TYPE type,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 result->public_key_ = SECKEY_ConvertToPublicKey(result->key_); 258 result->public_key_ = SECKEY_ConvertToPublicKey(result->key_);
259 if (!result->public_key_) { 259 if (!result->public_key_) {
260 NOTREACHED(); 260 NOTREACHED();
261 return NULL; 261 return NULL;
262 } 262 }
263 263
264 return result.release(); 264 return result.release();
265 } 265 }
266 266
267 } // namespace crypto 267 } // namespace crypto
OLDNEW
« no previous file with comments | « crypto/rsa_private_key.cc ('k') | crypto/rsa_private_key_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698