diff options
author | lloyd <[email protected]> | 2010-03-10 16:47:39 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-10 16:47:39 +0000 |
commit | c8e8fdab5f0253f5143ab9eb1a250ad69ffc4420 (patch) | |
tree | 1900c404bba1b2cf8468d2b3509dfb575d49447e /checks | |
parent | ffebc65a41fbe22934830203cfa4ee791804796b (diff) |
s/auto_ptr/unique_ptr/
Diffstat (limited to 'checks')
-rw-r--r-- | checks/ecdsa.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/checks/ecdsa.cpp b/checks/ecdsa.cpp index 7e585b584..7b8b65ed2 100644 --- a/checks/ecdsa.cpp +++ b/checks/ecdsa.cpp @@ -387,7 +387,7 @@ void test_read_pkcs8(RandomNumberGenerator& rng) try { - std::auto_ptr<PKCS8_PrivateKey> loaded_key(PKCS8::load_key(TEST_DATA_DIR "/wo_dompar_private.pkcs8.pem", rng)); + std::unique_ptr<PKCS8_PrivateKey> loaded_key(PKCS8::load_key(TEST_DATA_DIR "/wo_dompar_private.pkcs8.pem", rng)); ECDSA_PrivateKey* ecdsa = dynamic_cast<ECDSA_PrivateKey*>(loaded_key.get()); CHECK_MESSAGE(ecdsa, "the loaded key could not be converted into an ECDSA_PrivateKey"); @@ -407,7 +407,7 @@ void test_read_pkcs8(RandomNumberGenerator& rng) try { - std::auto_ptr<PKCS8_PrivateKey> loaded_key_nodp(PKCS8::load_key(TEST_DATA_DIR "/nodompar_private.pkcs8.pem", rng)); + std::unique_ptr<PKCS8_PrivateKey> loaded_key_nodp(PKCS8::load_key(TEST_DATA_DIR "/nodompar_private.pkcs8.pem", rng)); // anew in each test with unregistered domain-parameters ECDSA_PrivateKey* ecdsa_nodp = dynamic_cast<ECDSA_PrivateKey*>(loaded_key_nodp.get()); CHECK_MESSAGE(ecdsa_nodp, "the loaded key could not be converted into an ECDSA_PrivateKey"); @@ -422,7 +422,7 @@ void test_read_pkcs8(RandomNumberGenerator& rng) try { - std::auto_ptr<PKCS8_PrivateKey> loaded_key_withdp( + std::unique_ptr<PKCS8_PrivateKey> loaded_key_withdp( PKCS8::load_key(TEST_DATA_DIR "/withdompar_private.pkcs8.pem", rng)); std::cout << "Unexpected success: loaded key with unknown OID\n"; |