summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2014-06-04 16:43:45 -0700
committerWan-Teh Chang <wtc@google.com>2014-06-04 16:43:45 -0700
commitac02dcf71c6fce85ce6458a19e695aaad509dea9 (patch)
treea390adbe99169ffe7fc755010dd9e27f37b76ffd
parentb78ee8c1d2786ecc1836c9728a6345694d2ec1b2 (diff)
downloadnss-hg-ac02dcf71c6fce85ce6458a19e695aaad509dea9.tar.gz
Bug 970539: Back out unused function SEC_NumberOrNameStringToOIDTag,NSS_3_16_2_BETA3
which passes the second argument of a wrong type to SEC_StringToOID. TBR=kaie.
-rw-r--r--lib/util/oidstring.c31
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);
-}