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

Unified Diff: base/crypto/signature_creator_openssl.cc

Issue 5705006: Fix openssl portability issue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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 | « no previous file | base/crypto/signature_verifier_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/crypto/signature_creator_openssl.cc
diff --git a/base/crypto/signature_creator_openssl.cc b/base/crypto/signature_creator_openssl.cc
index 7eed379fe820bee2fb96c72007ac8f4c6e93d550..5bdb78359708e653ef5b5472240db086e2aff212 100644
--- a/base/crypto/signature_creator_openssl.cc
+++ b/base/crypto/signature_creator_openssl.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "base/openssl_util.h"
#include "base/scoped_ptr.h"
+#include "base/stl_util-inl.h"
namespace base {
@@ -41,7 +42,7 @@ bool SignatureCreator::Final(std::vector<uint8>* signature) {
signature->resize(EVP_PKEY_size(key));
unsigned int len = 0;
- int rv = EVP_SignFinal(sign_context_, signature->data(), &len, key);
+ int rv = EVP_SignFinal(sign_context_, vector_as_array(signature), &len, key);
if (!rv) {
signature->clear();
return false;
« no previous file with comments | « no previous file | base/crypto/signature_verifier_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698