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

Unified Diff: crypto/nss_key_util.cc

Issue 1441543002: Make vector_as_array use std::vector::data and switch a few directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark comment Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/hmac_openssl.cc ('k') | crypto/signature_creator_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/nss_key_util.cc
diff --git a/crypto/nss_key_util.cc b/crypto/nss_key_util.cc
index 77435fba36175766c88b5941f1cc692168f371eb..7a5d6b4b872107ce4e2fbcbf98592256f2f19f74 100644
--- a/crypto/nss_key_util.cc
+++ b/crypto/nss_key_util.cc
@@ -9,7 +9,6 @@
#include <pk11pub.h>
#include "base/logging.h"
-#include "base/stl_util.h"
#include "crypto/nss_util.h"
#if defined(USE_NSS_CERTS)
@@ -38,7 +37,7 @@ ScopedSECItem MakeIDFromSPKI(const std::vector<uint8_t>& input) {
// First, decode and save the public key.
SECItem key_der;
key_der.type = siBuffer;
- key_der.data = const_cast<unsigned char*>(vector_as_array(&input));
+ key_der.data = const_cast<unsigned char*>(input.data());
key_der.len = input.size();
ScopedPublicKeyInfo spki(SECKEY_DecodeDERSubjectPublicKeyInfo(&key_der));
@@ -94,7 +93,7 @@ ScopedSECKEYPrivateKey ImportNSSKeyFromPrivateKeyInfo(
// Excess data is illegal, but NSS silently accepts it, so first ensure that
// |input| consists of a single ASN.1 element.
SECItem input_item;
- input_item.data = const_cast<unsigned char*>(vector_as_array(&input));
+ input_item.data = const_cast<unsigned char*>(input.data());
input_item.len = input.size();
SECItem der_private_key_info;
SECStatus rv =
« no previous file with comments | « crypto/hmac_openssl.cc ('k') | crypto/signature_creator_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698