diff options
Diffstat (limited to 'chromium/components/webcrypto/algorithms/ecdsa.cc')
-rw-r--r-- | chromium/components/webcrypto/algorithms/ecdsa.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/components/webcrypto/algorithms/ecdsa.cc b/chromium/components/webcrypto/algorithms/ecdsa.cc index a77e77dd39c..0b829a8d212 100644 --- a/chromium/components/webcrypto/algorithms/ecdsa.cc +++ b/chromium/components/webcrypto/algorithms/ecdsa.cc @@ -46,11 +46,11 @@ Status GetPKeyAndDigest(const blink::WebCryptoAlgorithm& algorithm, Status GetEcGroupOrderSize(EVP_PKEY* pkey, size_t* order_size_bytes) { crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE); - crypto::ScopedEC_KEY ec(EVP_PKEY_get1_EC_KEY(pkey)); - if (!ec.get()) + EC_KEY* ec = EVP_PKEY_get0_EC_KEY(pkey); + if (!ec) return Status::ErrorUnexpected(); - const EC_GROUP* group = EC_KEY_get0_group(ec.get()); + const EC_GROUP* group = EC_KEY_get0_group(ec); crypto::ScopedBIGNUM order(BN_new()); if (!EC_GROUP_get_order(group, order.get(), NULL)) |