diff options
author | Jack Lloyd <[email protected]> | 2017-04-03 11:11:03 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-04-03 11:11:03 -0400 |
commit | cc8d2eec88c8744152931b34d28619e7fc6e26db (patch) | |
tree | 35997d1089510cd1cf0eefa7ad91442dd9040728 /src/tests/unit_tls.cpp | |
parent | d93a1ad12e4bd872a687ea31329efd2c9878c8d9 (diff) |
Fix botan_privkey_create if the desired algorithm was not available in build
If DSA was disabled, caused memory corruption/crashes due to combination of
uninitialized object and the tests not checking return values as carefully
as they should.
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r-- | src/tests/unit_tls.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp index 77aebce93..28152e624 100644 --- a/src/tests/unit_tls.cpp +++ b/src/tests/unit_tls.cpp @@ -132,6 +132,8 @@ class Credentials_Manager_Test : public Botan::Credentials_Manager chain.push_back(*m_dsa_ca); break; } +#else + BOTAN_UNUSED(context); #endif } } |