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

Unified Diff: crypto/signature_creator.cc

Issue 2332473002: Use new BoringSSL scopers in //crypto (Closed)
Patch Set: rebase Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/rsa_private_key.cc ('k') | crypto/signature_verifier.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/signature_creator.cc
diff --git a/crypto/signature_creator.cc b/crypto/signature_creator.cc
index bb4019ef729c4880976591b847b454c94a13593e..95423d4dd1d6a554887dcf9dbf7b5f5359361a4b 100644
--- a/crypto/signature_creator.cc
+++ b/crypto/signature_creator.cc
@@ -12,7 +12,6 @@
#include "base/logging.h"
#include "crypto/openssl_util.h"
#include "crypto/rsa_private_key.h"
-#include "crypto/scoped_openssl_types.h"
namespace crypto {
@@ -68,7 +67,7 @@ bool SignatureCreator::Sign(RSAPrivateKey* key,
const uint8_t* data,
int data_len,
std::vector<uint8_t>* signature) {
- ScopedRSA rsa_key(EVP_PKEY_get1_RSA(key->key()));
+ bssl::UniquePtr<RSA> rsa_key(EVP_PKEY_get1_RSA(key->key()));
if (!rsa_key)
return false;
signature->resize(RSA_size(rsa_key.get()));
« no previous file with comments | « crypto/rsa_private_key.cc ('k') | crypto/signature_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698