From dc1565216a5d20ae0d75872151523252309a1292 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 4 Jan 2017 14:24:24 +0000 Subject: nss-3.28.1 --- nss/lib/pki/certdecode.c | 55 ++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 30 deletions(-) (limited to 'nss/lib/pki/certdecode.c') diff --git a/nss/lib/pki/certdecode.c b/nss/lib/pki/certdecode.c index fa259cc..61c8033 100644 --- a/nss/lib/pki/certdecode.c +++ b/nss/lib/pki/certdecode.c @@ -12,54 +12,49 @@ /* This is defined in pki3hack.c */ NSS_EXTERN nssDecodedCert * -nssDecodedPKIXCertificate_Create ( - NSSArena *arenaOpt, - NSSDER *encoding -); +nssDecodedPKIXCertificate_Create( + NSSArena *arenaOpt, + NSSDER *encoding); NSS_IMPLEMENT PRStatus -nssDecodedPKIXCertificate_Destroy ( - nssDecodedCert *dc -); +nssDecodedPKIXCertificate_Destroy( + nssDecodedCert *dc); NSS_IMPLEMENT nssDecodedCert * -nssDecodedCert_Create ( - NSSArena *arenaOpt, - NSSDER *encoding, - NSSCertificateType type -) +nssDecodedCert_Create( + NSSArena *arenaOpt, + NSSDER *encoding, + NSSCertificateType type) { nssDecodedCert *rvDC = NULL; - switch(type) { - case NSSCertificateType_PKIX: - rvDC = nssDecodedPKIXCertificate_Create(arenaOpt, encoding); - break; - default: + switch (type) { + case NSSCertificateType_PKIX: + rvDC = nssDecodedPKIXCertificate_Create(arenaOpt, encoding); + break; + default: #if 0 - nss_SetError(NSS_ERROR_INVALID_ARGUMENT); + nss_SetError(NSS_ERROR_INVALID_ARGUMENT); #endif - return (nssDecodedCert *)NULL; + return (nssDecodedCert *)NULL; } return rvDC; } NSS_IMPLEMENT PRStatus -nssDecodedCert_Destroy ( - nssDecodedCert *dc -) +nssDecodedCert_Destroy( + nssDecodedCert *dc) { if (!dc) { - return PR_FAILURE; + return PR_FAILURE; } - switch(dc->type) { - case NSSCertificateType_PKIX: - return nssDecodedPKIXCertificate_Destroy(dc); - default: + switch (dc->type) { + case NSSCertificateType_PKIX: + return nssDecodedPKIXCertificate_Destroy(dc); + default: #if 0 - nss_SetError(NSS_ERROR_INVALID_ARGUMENT); + nss_SetError(NSS_ERROR_INVALID_ARGUMENT); #endif - break; + break; } return PR_FAILURE; } - -- cgit v1.2.1