aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi_pkey.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-09-10 19:19:19 -0400
committerJack Lloyd <[email protected]>2018-10-01 12:53:53 -0400
commit8eb900731da945d276f723534af09592213ee582 (patch)
treed080c6fd2ca760796b522d21288b0b4bfc0b6e65 /src/lib/ffi/ffi_pkey.cpp
parenta792728e8941b62761052f5e0d288ba13a016c77 (diff)
Remove support for Visual C++ 2013
Closes GH #1557
Diffstat (limited to 'src/lib/ffi/ffi_pkey.cpp')
-rw-r--r--src/lib/ffi/ffi_pkey.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ffi/ffi_pkey.cpp b/src/lib/ffi/ffi_pkey.cpp
index 584252f2b..24bc96758 100644
--- a/src/lib/ffi/ffi_pkey.cpp
+++ b/src/lib/ffi/ffi_pkey.cpp
@@ -28,7 +28,7 @@ int botan_privkey_create(botan_privkey_t* key_obj,
const char* algo_params,
botan_rng_t rng_obj)
{
- return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() -> int {
+ return ffi_guard_thunk(__func__, [=]() -> int {
if(key_obj == nullptr)
return BOTAN_FFI_ERROR_NULL_POINTER;
@@ -62,7 +62,7 @@ int botan_privkey_load(botan_privkey_t* key, botan_rng_t rng_obj,
*key = nullptr;
- return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() -> int {
+ return ffi_guard_thunk(__func__, [=]() -> int {
Botan::DataSource_Memory src(bits, len);
std::unique_ptr<Botan::Private_Key> pkcs8;
@@ -95,7 +95,7 @@ int botan_pubkey_load(botan_pubkey_t* key,
{
*key = nullptr;
- return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() -> int {
+ return ffi_guard_thunk(__func__, [=]() -> int {
Botan::DataSource_Memory src(bits, bits_len);
std::unique_ptr<Botan::Public_Key> pubkey(Botan::X509::load_key(src));
@@ -114,7 +114,7 @@ int botan_pubkey_destroy(botan_pubkey_t key)
int botan_privkey_export_pubkey(botan_pubkey_t* pubout, botan_privkey_t key_obj)
{
- return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() -> int {
+ return ffi_guard_thunk(__func__, [=]() -> int {
std::unique_ptr<Botan::Public_Key>
pubkey(Botan::X509::load_key(Botan::X509::BER_encode(safe_get(key_obj))));
@@ -265,7 +265,7 @@ int botan_pubkey_fingerprint(botan_pubkey_t key, const char* hash_fn,
int botan_pkcs_hash_id(const char* hash_name, uint8_t pkcs_id[], size_t* pkcs_id_len)
{
#if defined(BOTAN_HAS_HASH_ID)
- return ffi_guard_thunk(BOTAN_CURRENT_FUNCTION, [=]() -> int {
+ return ffi_guard_thunk(__func__, [=]() -> int {
const std::vector<uint8_t> hash_id = Botan::pkcs_hash_id(hash_name);
return write_output(pkcs_id, pkcs_id_len, hash_id.data(), hash_id.size());
});