diff options
author | lloyd <[email protected]> | 2008-10-13 03:25:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-13 03:25:34 +0000 |
commit | 0c06b8db8e812cb3fe9c9563542aeb9f3f5acf71 (patch) | |
tree | 2281c58628502db433987c107f996892750cb197 /src/core | |
parent | 0df372dca67a2b9f77e32e9d393a825a61a7ff70 (diff) |
More Doxygen comments from InSiTo
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/oid_lookup/oids.h | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/src/core/oid_lookup/oids.h b/src/core/oid_lookup/oids.h index b5be0e01f..1bf209c61 100644 --- a/src/core/oid_lookup/oids.h +++ b/src/core/oid_lookup/oids.h @@ -12,21 +12,41 @@ namespace Botan { namespace OIDS { -/************************************************* -* Register an OID to string mapping * -*************************************************/ +/** +* Register an OID to string mapping. +* @param oid the oid to register +* @param name the name to be associated with the oid +*/ BOTAN_DLL void add_oid(const OID&, const std::string&); -/************************************************* -* See if an OID exists in the internal table * -*************************************************/ +/** +* See if an OID exists in the internal table. +* @param oid the oid to check for +* @return true if the oid is registered +*/ BOTAN_DLL bool have_oid(const std::string&); -/************************************************* -* Perform OID<->string mappings * -*************************************************/ +/** +* Resolve an OID +* @param oid the OID to look up +* @return the name associated with this OID +*/ BOTAN_DLL std::string lookup(const OID&); + +/** +* Find the OID to a name. The lookup will be performed in the +* general OID section of the configuration. +* @param name the name to resolve +* @return the OID associated with the specified name +*/ BOTAN_DLL OID lookup(const std::string&); + +/** +* Tests whether the specified OID stands for the specified name. +* @param oid the OID to check +* @param name the name to check +* @return true if the specified OID stands for the specified name +*/ BOTAN_DLL bool name_of(const OID&, const std::string&); } |