| Index: components/webcrypto/algorithms/ecdsa.cc
|
| diff --git a/components/webcrypto/algorithms/ecdsa.cc b/components/webcrypto/algorithms/ecdsa.cc
|
| index a77e77dd39c37d0014e5d8d8a08462207853fae0..0b829a8d2129e53285e955eb01df137ebe4654f5 100644
|
| --- a/components/webcrypto/algorithms/ecdsa.cc
|
| +++ b/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))
|
|
|