aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-12-04 22:06:32 +0100
committerRenĂ© Korthaus <[email protected]>2016-12-05 10:28:38 +0100
commit8690e4e616367c12412fb56bc1826be203a4614b (patch)
treedace4204f21931d458ceeadf351428f01792f215 /src/lib/ffi
parent61c4932f27c060a691ddc04fb75d227a1e8365dd (diff)
Add Public_Key::subject_public_key()
Adds new Public_Key::subject_public_key() that returns a X.509 SubjectPublicKey structure. Renames the current Public_Key::x509_subject_public_key() to public_key_bits(). BER_encode() just invokes subject_public_key().
Diffstat (limited to 'src/lib/ffi')
-rw-r--r--src/lib/ffi/ffi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp
index 3a943378d..4727c0763 100644
--- a/src/lib/ffi/ffi.cpp
+++ b/src/lib/ffi/ffi.cpp
@@ -998,7 +998,7 @@ int botan_pubkey_fingerprint(botan_pubkey_t key, const char* hash_fn,
{
return BOTAN_FFI_DO(Botan::Public_Key, key, k, {
std::unique_ptr<Botan::HashFunction> h(Botan::HashFunction::create(hash_fn));
- return write_vec_output(out, out_len, h->process(k.x509_subject_public_key()));
+ return write_vec_output(out, out_len, h->process(k.public_key_bits()));
});
}