From a655c73b93f6274d320e7ba0244768bc280800a0 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 12 Oct 2015 11:21:56 -1000 Subject: [PATCH] Switch rsa_test.cc to use new RSA private key parsing API. Change-Id: I48885402b88309bb514554d209e1827d31738756 Reviewed-on: https://boringssl-review.googlesource.com/6211 Reviewed-by: David Benjamin Reviewed-by: Adam Langley Reviewed-by: Adam Langley --- crypto/rsa/rsa_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/rsa/rsa_test.cc b/crypto/rsa/rsa_test.cc index 399c0b75..ab241c3b 100644 --- a/crypto/rsa/rsa_test.cc +++ b/crypto/rsa/rsa_test.cc @@ -498,7 +498,7 @@ static const uint8_t kEstonianRSAKey[] = { static bool TestRSA(const uint8_t *der, size_t der_len, const uint8_t *oaep_ciphertext, size_t oaep_ciphertext_len) { - ScopedRSA key(d2i_RSAPrivateKey(nullptr, &der, der_len)); + ScopedRSA key(RSA_private_key_from_bytes(der, der_len)); if (!key) { return false; }