| 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));
|
|
|