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

Unified Diff: crypto/signature_creator_openssl.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/nss_key_util.cc ('k') | crypto/signature_verifier_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/signature_creator_openssl.cc
diff --git a/crypto/signature_creator_openssl.cc b/crypto/signature_creator_openssl.cc
index 0d90d50044da8de10c7af00f80bb2ccf65e4e548..3dc64cde904074d721d65e101e671f1dc11fd36c 100644
--- a/crypto/signature_creator_openssl.cc
+++ b/crypto/signature_creator_openssl.cc
@@ -9,7 +9,6 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/stl_util.h"
#include "crypto/openssl_util.h"
#include "crypto/rsa_private_key.h"
#include "crypto/scoped_openssl_types.h"
@@ -70,7 +69,7 @@ bool SignatureCreator::Sign(RSAPrivateKey* key,
unsigned int len = 0;
if (!RSA_sign(ToOpenSSLDigestType(hash_alg), data, data_len,
- vector_as_array(signature), &len, rsa_key.get())) {
+ signature->data(), &len, rsa_key.get())) {
signature->clear();
return false;
}
@@ -103,7 +102,7 @@ bool SignatureCreator::Final(std::vector<uint8>* signature) {
signature->resize(len);
// Sign it.
- if (!EVP_DigestSignFinal(sign_context_, vector_as_array(signature), &len)) {
+ if (!EVP_DigestSignFinal(sign_context_, signature->data(), &len)) {
signature->clear();
return false;
}
« no previous file with comments | « crypto/nss_key_util.cc ('k') | crypto/signature_verifier_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698