Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: nss/mozilla/security/nss/lib/certdb/alg1485.c

Issue 11193042: Update NSS to NSS 3.14 RC1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: nss/mozilla/security/nss/lib/certdb/alg1485.c
===================================================================
--- nss/mozilla/security/nss/lib/certdb/alg1485.c (revision 162724)
+++ nss/mozilla/security/nss/lib/certdb/alg1485.c (working copy)
@@ -175,9 +175,9 @@
}
static void
-skipSpace(char **pbp, char *endptr)
+skipSpace(const char **pbp, const char *endptr)
{
- char *bp = *pbp;
+ const char *bp = *pbp;
while (bp < endptr && OPTIONAL_SPACE(*bp)) {
bp++;
}
@@ -185,9 +185,10 @@
}
static SECStatus
-scanTag(char **pbp, char *endptr, char *tagBuf, int tagBufSize)
+scanTag(const char **pbp, const char *endptr, char *tagBuf, int tagBufSize)
{
- char *bp, *tagBufp;
+ const char *bp;
+ char *tagBufp;
int taglen;
PORT_Assert(tagBufSize > 0);
@@ -232,9 +233,10 @@
/* Returns the number of bytes in the value. 0 means failure. */
static int
-scanVal(char **pbp, char *endptr, char *valBuf, int valBufSize)
+scanVal(const char **pbp, const char *endptr, char *valBuf, int valBufSize)
{
- char *bp, *valBufp;
+ const char *bp;
+ char *valBufp;
int vallen = 0;
PRBool isQuoted;
@@ -358,11 +360,11 @@
* points to first character after separator.
*/
static CERTAVA *
-ParseRFC1485AVA(PRArenaPool *arena, char **pbp, char *endptr)
+ParseRFC1485AVA(PRArenaPool *arena, const char **pbp, const char *endptr)
{
CERTAVA *a;
const NameToKind *n2k;
- char *bp;
+ const char *bp;
int vt = -1;
int valLen;
SECOidTag kind = SEC_OID_UNKNOWN;
@@ -446,11 +448,11 @@
}
static CERTName *
-ParseRFC1485Name(char *buf, int len)
+ParseRFC1485Name(const char *buf, int len)
{
SECStatus rv;
CERTName *name;
- char *bp, *e;
+ const char *bp, *e;
CERTAVA *ava;
CERTRDN *rdn = NULL;
@@ -516,7 +518,7 @@
}
CERTName *
-CERT_AsciiToName(char *string)
+CERT_AsciiToName(const char *string)
{
CERTName *name;
name = ParseRFC1485Name(string, PORT_Strlen(string));

Powered by Google App Engine
This is Rietveld 408576698