aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-11-14 09:12:59 -0500
committerJack Lloyd <[email protected]>2017-11-14 09:12:59 -0500
commit1091bd40435bd5e01cab27f488c03f0a7d2e38d7 (patch)
tree0088b44428996dfa01e101ea4b986a46985a6a6c /src/lib/asn1
parentcce28dc1da0ee946495b89525d74e224e6743cb3 (diff)
Add OIDS::oid2str and str2oid
Using the name "lookup" for both directions is confusing.
Diffstat (limited to 'src/lib/asn1')
-rw-r--r--src/lib/asn1/oids.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/asn1/oids.h b/src/lib/asn1/oids.h
index 7feeee6ec..5b175e9a5 100644
--- a/src/lib/asn1/oids.h
+++ b/src/lib/asn1/oids.h
@@ -29,6 +29,16 @@ BOTAN_PUBLIC_API(2,0) std::string lookup(const OID& oid);
*/
BOTAN_PUBLIC_API(2,0) OID lookup(const std::string& name);
+inline std::string oid2str(const OID& oid)
+ {
+ return lookup(oid);
+ }
+
+inline OID str2oid(const std::string& name)
+ {
+ return lookup(name);
+ }
+
/**
* See if an OID exists in the internal table.
* @param oid the oid to check for