diff options
author | Jack Lloyd <[email protected]> | 2018-03-21 08:30:50 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-21 08:30:50 -0400 |
commit | e2a0236d3c00b2a80ad22b8239e9752fb08f777e (patch) | |
tree | 235b1724022468403846c3686a24ceb0572fe26a /src/lib/x509/x509_dn.h | |
parent | 931d57093e7dd482ea5eccf609857f9ea090dbd2 (diff) |
Avoid creating a map from a DN when not required
Diffstat (limited to 'src/lib/x509/x509_dn.h')
-rw-r--r-- | src/lib/x509/x509_dn.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/x509/x509_dn.h b/src/lib/x509/x509_dn.h index e6302e961..9d8beb0bf 100644 --- a/src/lib/x509/x509_dn.h +++ b/src/lib/x509/x509_dn.h @@ -53,14 +53,13 @@ class BOTAN_PUBLIC_API(2,0) X509_DN final : public ASN1_Object const std::vector<std::pair<OID,ASN1_String>>& dn_info() const { return m_rdn; } + std::multimap<OID, std::string> get_attributes() const; + std::multimap<std::string, std::string> contents() const; + bool has_field(const std::string& attr) const; std::vector<std::string> get_attribute(const std::string& attr) const; std::string get_first_attribute(const std::string& attr) const; - std::multimap<OID, std::string> get_attributes() const; - - std::multimap<std::string, std::string> contents() const; - void add_attribute(const std::string& key, const std::string& val); void add_attribute(const OID& oid, const std::string& val) |