aboutsummaryrefslogtreecommitdiffstats
path: root/src/oids.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/oids.cpp')
-rw-r--r--src/oids.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/oids.cpp b/src/oids.cpp
index 6b96b3656..92a89bbb6 100644
--- a/src/oids.cpp
+++ b/src/oids.cpp
@@ -53,6 +53,14 @@ bool have_oid(const std::string& name)
return global_config().is_set("str2oid", name);
}
+/*************************************************
+* Check to see if an OID exists in the table *
+*************************************************/
+bool name_of(const OID& oid, const std::string& name)
+ {
+ return (oid == lookup(name));
+ }
+
}
}