diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/psk_db/psk_db.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/psk_db/psk_db.h b/src/lib/psk_db/psk_db.h index 2a573c7d5..39686a995 100644 --- a/src/lib/psk_db/psk_db.h +++ b/src/lib/psk_db/psk_db.h @@ -59,12 +59,12 @@ class BOTAN_PUBLIC_API(2,4) PSK_Database std::string get_str(const std::string& name) const { secure_vector<uint8_t> psk = get(name); - return std::string(reinterpret_cast<const char*>(psk.data()), psk.size()); + return std::string(cast_uint8_ptr_to_char(psk.data()), psk.size()); } void set_str(const std::string& name, const std::string& psk) { - set(name, reinterpret_cast<const uint8_t*>(psk.data()), psk.size()); + set(name, cast_char_ptr_to_uint8(psk.data()), psk.size()); } template<typename Alloc> |