diff options
author | Jack Lloyd <[email protected]> | 2017-03-27 15:53:29 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-03-27 15:53:29 -0400 |
commit | e1eb733e9cb94a3e52defa083b2c12925efc5329 (patch) | |
tree | 65cc8129267217b5e4f2d346fee94304320957a1 /src/tests/test_ffi.cpp | |
parent | e7e130c3d56eead0d2f9e9cd5d00541a9c7fd006 (diff) |
Expose PK::check_key functions in C interface
Diffstat (limited to 'src/tests/test_ffi.cpp')
-rw-r--r-- | src/tests/test_ffi.cpp | 3 |
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); |