diff options
author | Jack Lloyd <[email protected]> | 2017-03-28 11:49:17 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-03-28 11:49:17 -0400 |
commit | 5b0481cb93745c6b56d923698b164d2289559eb5 (patch) | |
tree | 58dc5291fb57c2a3eac81d88ee05e3a2344367fc /src/tests | |
parent | d4deb86738019033ede184e8d46d9e892c435f6c (diff) | |
parent | e1eb733e9cb94a3e52defa083b2c12925efc5329 (diff) |
Merge GH #944 Add check_key to C API
Diffstat (limited to 'src/tests')
-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); |