summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornelsonb%netscape.com <devnull@localhost>2003-11-04 01:48:39 +0000
committernelsonb%netscape.com <devnull@localhost>2003-11-04 01:48:39 +0000
commit3011fd94b20fa38fc50c4e546774d0f139b9cefb (patch)
tree3fe933dd3019ff6e5762ce534cfff74ec1c80a47
parent020dc00aa46f0ae931fa6131cdc2071f1e76a3ba (diff)
downloadnss-hg-3011fd94b20fa38fc50c4e546774d0f139b9cefb.tar.gz
Rename get_oid_string to CERT_GetOidString and export it. Also, export
CERT_DestroyOidSequence. bug 222568. r=jpierre (for this portion).
-rw-r--r--security/nss/lib/certdb/alg1485.c7
-rw-r--r--security/nss/lib/certdb/cert.h4
-rw-r--r--security/nss/lib/nss/nss.def2
3 files changed, 10 insertions, 3 deletions
diff --git a/security/nss/lib/certdb/alg1485.c b/security/nss/lib/certdb/alg1485.c
index 97640319f..74bbb7d85 100644
--- a/security/nss/lib/certdb/alg1485.c
+++ b/security/nss/lib/certdb/alg1485.c
@@ -541,8 +541,9 @@ CERT_RFC1485_EscapeAndQuote(char *dst, int dstlen, char *src, int srclen)
}
/* convert an OID to dotted-decimal representation */
-static char *
-get_oid_string(SECItem *oid)
+/* Returns a string that must be freed with PR_smprintf_free(), */
+char *
+CERT_GetOidString(const SECItem *oid)
{
PRUint8 *end;
PRUint8 *d;
@@ -668,7 +669,7 @@ AppendAVA(stringBuf *bufp, CERTAVA *ava)
tagName = n2k->name;
} else {
/* handle unknown attribute types per RFC 2253 */
- tagName = unknownTag = get_oid_string(&ava->type);
+ tagName = unknownTag = CERT_GetOidString(&ava->type);
}
maxLen = n2k->maxLen;
diff --git a/security/nss/lib/certdb/cert.h b/security/nss/lib/certdb/cert.h
index 2d6214ff4..3d22ccb2f 100644
--- a/security/nss/lib/certdb/cert.h
+++ b/security/nss/lib/certdb/cert.h
@@ -71,6 +71,10 @@ extern char *CERT_NameToAscii(CERTName *name);
extern CERTAVA *CERT_CopyAVA(PRArenaPool *arena, CERTAVA *src);
+/* convert an OID to dotted-decimal representation */
+/* Returns a string that must be freed with PR_smprintf_free(), */
+extern char * CERT_GetOidString(const SECItem *oid);
+
/*
** Examine an AVA and return the tag that refers to it. The AVA tags are
** defined as SEC_OID_AVA*.
diff --git a/security/nss/lib/nss/nss.def b/security/nss/lib/nss/nss.def
index d922565ff..15289bbcb 100644
--- a/security/nss/lib/nss/nss.def
+++ b/security/nss/lib/nss/nss.def
@@ -759,7 +759,9 @@ SECKEY_PublicKeyStrengthInBits;
;+NSS_3.9 { # NSS 3.9 release
;+ global:
CERT_DecodeTimeChoice;
+CERT_DestroyOidSequence;
CERT_EncodeTimeChoice;
+CERT_GetOidString;
;;CERT_TimeChoiceTemplate DATA ;
DSAU_DecodeDerSigToLen;
DSAU_EncodeDerSigWithLen;