Skip to content

Commit

Permalink
Declare src argument to SEC_ASN1DecodeItem to be const.
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonb%netscape.com committed Jun 20, 2003
1 parent 0a34989 commit d03835e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion security/nss/lib/util/secasn1.h
Expand Up @@ -88,7 +88,7 @@ extern SECStatus SEC_ASN1Decode(PRArenaPool *pool, void *dest,

extern SECStatus SEC_ASN1DecodeItem(PRArenaPool *pool, void *dest,
const SEC_ASN1Template *t,
SECItem *item);
const SECItem *src);

extern SECStatus SEC_QuickDERDecodeItem(PRArenaPool* arena, void* dest,
const SEC_ASN1Template* templateEntry,
Expand Down
4 changes: 2 additions & 2 deletions security/nss/lib/util/secasn1d.c
Expand Up @@ -2871,10 +2871,10 @@ SEC_ASN1Decode (PRArenaPool *poolp, void *dest,
SECStatus
SEC_ASN1DecodeItem (PRArenaPool *poolp, void *dest,
const SEC_ASN1Template *theTemplate,
SECItem *item)
const SECItem *src)
{
return SEC_ASN1Decode (poolp, dest, theTemplate,
(char *) item->data, item->len);
(const char *)src->data, src->len);
}

#ifdef DEBUG_ASN1D_STATES
Expand Down

0 comments on commit d03835e

Please sign in to comment.