mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
Fix for bug 222180 . remove redundant code
This commit is contained in:
parent
4efbc18260
commit
8963533a51
@ -770,37 +770,6 @@ secu_PrintPKCS7SignedAndEnveloped(FILE *out,
|
||||
return 0;
|
||||
}
|
||||
|
||||
PR_IMPLEMENT(int)
|
||||
SECU_PrintCrl (FILE *out, SECItem *der, char *m, int level)
|
||||
{
|
||||
PRArenaPool *arena = NULL;
|
||||
CERTCrl *c = NULL;
|
||||
int rv;
|
||||
|
||||
do {
|
||||
/* Decode CRL */
|
||||
c = (CERTCrl*) PORT_ZAlloc(sizeof(CERTCrl));
|
||||
if (!c) {
|
||||
rv = PORT_GetError();
|
||||
break;
|
||||
}
|
||||
|
||||
arena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);
|
||||
if (!arena) {
|
||||
rv = SEC_ERROR_NO_MEMORY;
|
||||
break;
|
||||
}
|
||||
|
||||
rv = SEC_ASN1DecodeItem(arena, c, CERT_CrlTemplate, der);
|
||||
if (rv != SECSuccess)
|
||||
break;
|
||||
SECU_PrintCRLInfo (out, c, m, level);
|
||||
} while (0);
|
||||
PORT_FreeArena (arena, PR_FALSE);
|
||||
PORT_Free (c);
|
||||
return (rv);
|
||||
}
|
||||
|
||||
/*
|
||||
** secu_PrintPKCS7Encrypted
|
||||
** Pretty print a PKCS7 encrypted data type (up to version 1).
|
||||
|
Loading…
Reference in New Issue
Block a user