Botan 2.19.1
Crypto and TLS for C&
|
#include <datastor.h>
Public Member Functions | |
void | add (const std::multimap< std::string, std::string > &) |
void | add (const std::string &, const secure_vector< uint8_t > &) |
void | add (const std::string &, const std::string &) |
void | add (const std::string &, const std::vector< uint8_t > &) |
void | add (const std::string &, uint32_t) |
std::vector< std::string > | get (const std::string &) const |
std::string | get1 (const std::string &key) const |
std::string | get1 (const std::string &key, const std::string &default_value) const |
std::vector< uint8_t > | get1_memvec (const std::string &) const |
uint32_t | get1_uint32 (const std::string &, uint32_t=0) const |
bool | has_value (const std::string &) const |
bool | operator== (const Data_Store &) const |
std::multimap< std::string, std::string > | search_for (std::function< bool(std::string, std::string)> predicate) const |
Data Store
This class is used internally by the library, and exposed for ABI reasons. There is no reason for applications to use this type directly. It will be removed in a future major release.
Definition at line 28 of file datastor.h.
void Botan::Data_Store::add | ( | const std::multimap< std::string, std::string > & | in | ) |
Definition at line 154 of file datastor.cpp.
Referenced by add(), and Botan::Extensions::contents_to().
void Botan::Data_Store::add | ( | const std::string & | key, |
const secure_vector< uint8_t > & | val | ||
) |
Definition at line 141 of file datastor.cpp.
References add(), and Botan::hex_encode().
void Botan::Data_Store::add | ( | const std::string & | key, |
const std::string & | val | ||
) |
Definition at line 125 of file datastor.cpp.
References Botan::multimap_insert().
void Botan::Data_Store::add | ( | const std::string & | key, |
const std::vector< uint8_t > & | val | ||
) |
Definition at line 146 of file datastor.cpp.
References add(), and Botan::hex_encode().
void Botan::Data_Store::add | ( | const std::string & | key, |
uint32_t | val | ||
) |
Definition at line 133 of file datastor.cpp.
References add(), and Botan::ASN1::to_string().
std::vector< std::string > Botan::Data_Store::get | ( | const std::string & | looking_for | ) | const |
Definition at line 50 of file datastor.cpp.
Referenced by get1(), get1_memvec(), and get1_uint32().
std::string Botan::Data_Store::get1 | ( | const std::string & | key | ) | const |
Definition at line 62 of file datastor.cpp.
References get().
std::string Botan::Data_Store::get1 | ( | const std::string & | key, |
const std::string & | default_value | ||
) | const |
Definition at line 74 of file datastor.cpp.
References get().
std::vector< uint8_t > Botan::Data_Store::get1_memvec | ( | const std::string & | key | ) | const |
Definition at line 92 of file datastor.cpp.
References get(), and Botan::hex_decode().
uint32_t Botan::Data_Store::get1_uint32 | ( | const std::string & | key, |
uint32_t | default_val = 0 |
||
) | const |
Definition at line 109 of file datastor.cpp.
References get(), and Botan::to_u32bit().
bool Botan::Data_Store::has_value | ( | const std::string & | key | ) | const |
Definition at line 27 of file datastor.cpp.
bool Botan::Data_Store::operator== | ( | const Data_Store & | other | ) | const |
A search function
Definition at line 19 of file datastor.cpp.
std::multimap< std::string, std::string > Botan::Data_Store::search_for | ( | std::function< bool(std::string, std::string)> | predicate | ) | const |
Definition at line 35 of file datastor.cpp.
Referenced by Botan::create_alt_name(), and Botan::create_dn().