implemented asn1_get_known_oid(), mapping OID index to ASN1 OID

This commit is contained in:
Martin Willi
2009-04-14 13:50:23 +00:00
parent 9c4387edcd
commit 56807f35b9
3 changed files with 42 additions and 1 deletions
+8
View File
@@ -106,6 +106,14 @@ chunk_t asn1_algorithmIdentifier(int oid);
*/
int asn1_known_oid(chunk_t object);
/**
* Converts an known OID index to ASN.1 OID
*
* @param n index into the oid_names[] table
* @return allocated OID chunk, chunk_empty if index out of range
*/
chunk_t asn1_get_known_oid(int n);
/**
* Returns the length of an ASN.1 object
* The blob pointer is advanced past the tag length fields