diff options
author | Jack Lloyd <[email protected]> | 2020-12-14 08:57:49 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-12-14 08:59:58 -0500 |
commit | 2dd662b85abfe545bfe12c4952a8f61a45de8ca3 (patch) | |
tree | 6aba3751cc8255d3dec5f46dbc3290036be355d1 /src/tests/unit_x509.cpp | |
parent | 9b5e3fb65e660d6b4830acdd50bda8f0165c5181 (diff) |
Avoid using deprecated functions for key loading
Also update the documentation a bit, this area is really out of date
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r-- | src/tests/unit_x509.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/unit_x509.cpp b/src/tests/unit_x509.cpp index 28b4da56a..b969f7501 100644 --- a/src/tests/unit_x509.cpp +++ b/src/tests/unit_x509.cpp @@ -637,8 +637,8 @@ Test::Result test_verify_gost2012_cert() // Throughout the test, some synonyms for EMSA4 are used, e.g. PSSR, EMSA-PSS Test::Result test_result("X509 Padding Config"); - std::unique_ptr<Botan::Private_Key> sk(Botan::PKCS8::load_key( - Test::data_file("x509/misc/rsa_key.pem"), Test::rng())); + Botan::DataSource_Stream key_stream(Test::data_file("x509/misc/rsa_key.pem")); + std::unique_ptr<Botan::Private_Key> sk = Botan::PKCS8::load_key(key_stream); // Create X509 CA certificate; EMSA3 is used for signing by default Botan::X509_Cert_Options opt("TESTCA"); |