Botan
1.10.9
|
Functions | |
void | add_oid (const OID &oid, const std::string &name) |
bool | have_oid (const std::string &name) |
std::string | lookup (const OID &oid) |
OID | lookup (const std::string &name) |
bool | name_of (const OID &oid, const std::string &name) |
BOTAN_DLL void Botan::OIDS::add_oid | ( | const OID & | oid, |
const std::string & | name | ||
) |
Register an OID to string mapping.
oid | the oid to register |
name | the name to be associated with the oid |
Definition at line 18 of file oids.cpp.
References Botan::OID::as_string(), Botan::Global_State_Management::global_state(), and Botan::Library_State::set().
BOTAN_DLL bool Botan::OIDS::have_oid | ( | const std::string & | oid | ) |
See if an OID exists in the internal table.
oid | the oid to check for |
Definition at line 61 of file oids.cpp.
References Botan::Global_State_Management::global_state(), and Botan::Library_State::is_set().
Referenced by Botan::CMS_Encoder::digest(), and Botan::X942_PRF::X942_PRF().
BOTAN_DLL std::string Botan::OIDS::lookup | ( | const OID & | oid | ) |
Resolve an OID
oid | the OID to look up |
Definition at line 31 of file oids.cpp.
References Botan::OID::as_string(), Botan::Library_State::get(), and Botan::Global_State_Management::global_state().
Referenced by Botan::X509_DN::add_attribute(), Botan::X509_Cert_Options::add_ex_constraint(), Botan::AlgorithmIdentifier::AlgorithmIdentifier(), Botan::Attribute::Attribute(), Botan::EAC_Signed_Object::check_signature(), Botan::X509_Object::check_signature(), Botan::choose_sig_format(), Botan::X509_DN::contents(), Botan::AlternativeName::contents(), Botan::CVC_EAC::create_cvc_req(), Botan::CVC_EAC::create_self_signed_cert(), Botan::CMS_Encoder::digest(), Botan::EC_Group::EC_Group(), Botan::CMS_Encoder::encrypt(), Botan::X509_DN::get_attribute(), Botan::CMS_Encoder::get_contents(), Botan::Public_Key::get_oid(), Botan::get_pbe(), Botan::X509_Object::hash_used_for_signature(), Botan::CMS_Decoder::layer_type(), Botan::PKCS8::load_key(), Botan::make_cvc_cert(), Botan::make_private_key(), Botan::make_public_key(), name_of(), Botan::Certificate_Extension::oid_of(), Botan::CMS_Encoder::sign(), Botan::X509_Certificate::to_string(), Botan::X509_DN::X509_DN(), and Botan::X942_PRF::X942_PRF().
BOTAN_DLL OID Botan::OIDS::lookup | ( | const std::string & | name | ) |
Find the OID to a name. The lookup will be performed in the general OID section of the configuration.
name | the name to resolve |
Definition at line 42 of file oids.cpp.
References Botan::Library_State::get(), and Botan::Global_State_Management::global_state().
BOTAN_DLL bool Botan::OIDS::name_of | ( | const OID & | oid, |
const std::string & | name | ||
) |