diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-01-04 14:24:24 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-01-04 14:24:24 +0000 |
commit | dc1565216a5d20ae0d75872151523252309a1292 (patch) | |
tree | d57454ba9a40386552179eddf60d28bd1e8f3d54 /nss/lib/pki/certdecode.c | |
parent | 26c046fbc57d53136b4fb3b5e0d18298318125d4 (diff) | |
download | nss-822b884019ac3b4a984e5d3b33b2cd07bc1518c1.tar.gz |
nss-3.28.1nss-3.28.1
Diffstat (limited to 'nss/lib/pki/certdecode.c')
-rw-r--r-- | nss/lib/pki/certdecode.c | 55 |
1 files changed, 25 insertions, 30 deletions
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; } - |