diff options
author | Jack Lloyd <[email protected]> | 2018-01-02 10:58:45 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-01-02 10:58:45 -0500 |
commit | 88699fc3295d99aebcabb0d88e2f155b1fdf43e2 (patch) | |
tree | d35f8cfaa59073504bb984e847cf7accdbaf6b46 /src | |
parent | 8326a481c1c7ae6ce18db8b4af9f413bd8435c3e (diff) |
Use helper for char to uint8_t conversions.
Diffstat (limited to 'src')
-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> |