summaryrefslogtreecommitdiff
path: root/nss/lib/pki/certdecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/lib/pki/certdecode.c')
-rw-r--r--nss/lib/pki/certdecode.c55
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;
}
-