aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-03-27 15:53:29 -0400
committerJack Lloyd <[email protected]>2017-03-27 15:53:29 -0400
commite1eb733e9cb94a3e52defa083b2c12925efc5329 (patch)
tree65cc8129267217b5e4f2d346fee94304320957a1 /src/tests
parente7e130c3d56eead0d2f9e9cd5d00541a9c7fd006 (diff)
Expose PK::check_key functions in C interface
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_ffi.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp
index 3e272d9cb..9c314c5ff 100644
--- a/src/tests/test_ffi.cpp
+++ b/src/tests/test_ffi.cpp
@@ -485,8 +485,11 @@ class FFI_Unit_Tests : public Test
botan_privkey_t priv;
if(TEST_FFI_OK(botan_privkey_create_rsa, (&priv, rng, 1024)))
{
+ TEST_FFI_OK(botan_privkey_check_key, (priv, rng, 0));
+
botan_pubkey_t pub;
TEST_FFI_OK(botan_privkey_export_pubkey, (&pub, priv));
+ TEST_FFI_OK(botan_pubkey_check_key, (pub, rng, 0));
ffi_test_pubkey_export(result, pub, priv, rng);