diff options
-rw-r--r-- | lib/util/oidstring.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/util/oidstring.c b/lib/util/oidstring.c index 74b2dce4c..8bb963e08 100644 --- a/lib/util/oidstring.c +++ b/lib/util/oidstring.c @@ -6,7 +6,6 @@ #include "secitem.h" #include "secport.h" #include "secerr.h" -#include "secoid.h" /* if to->data is not NULL, and to->len is large enough to hold the result, * then the resultant OID will be copyed into to->data, and to->len will be @@ -113,33 +112,3 @@ bad_data: } return rv; } - -SECStatus -SEC_NumberOrNameStringToOIDTag(PLArenaPool *arena, SECOidTag *to, const char *from) -{ - SECStatus rv; - SECOidTag tag; - SECOidData *coid; - - /* try dotted form first */ - rv = SEC_StringToOID(arena, to, from, strlen(from)); - if (rv == SECSuccess) { - return rv; - } - - /* Check to see if it matches a name in our oid table. - * SECOID_FindOIDByTag returns NULL if tag is out of bounds. - */ - tag = SEC_OID_UNKNOWN; - coid = SECOID_FindOIDByTag_Util(tag); - for ( ; coid; coid = SECOID_FindOIDByTag(++tag)) { - if (PORT_Strcasecmp(from, coid->desc) == 0) { - break; - } - } - if (coid == NULL) { - /* none found */ - return SECFailure; - } - return SECITEM_CopyItem(arena, to, &coid->oid); -} |