Back to index

lightning-sunbird  0.9+nobinonly
Functions
certdecode.c File Reference
#include "pkit.h"
#include "pkim.h"

Go to the source code of this file.

Functions

static nssDecodedCert * nssDecodedPKIXCertificate_Create (NSSArena *arenaOpt, NSSDER *encoding)
static PRStatus nssDecodedPKIXCertificate_Destroy (nssDecodedCert *dc)
NSS_IMPLEMENT nssDecodedCert * nssDecodedCert_Create (NSSArena *arenaOpt, NSSDER *encoding, NSSCertificateType type)
NSS_IMPLEMENT PRStatus nssDecodedCert_Destroy (nssDecodedCert *dc)

Function Documentation

NSS_IMPLEMENT nssDecodedCert* nssDecodedCert_Create ( NSSArena *  arenaOpt,
NSSDER encoding,
NSSCertificateType  type 
)

Definition at line 82 of file certdecode.c.

{
    nssDecodedCert *rvDC = NULL;
    switch(type) {
    case NSSCertificateType_PKIX:
       rvDC = nssDecodedPKIXCertificate_Create(arenaOpt, encoding);
       break;
    default:
#if 0
       nss_SetError(NSS_ERROR_INVALID_ARGUMENT);
#endif
       return (nssDecodedCert *)NULL;
    }
    return rvDC;
}

Here is the call graph for this function:

NSS_IMPLEMENT PRStatus nssDecodedCert_Destroy ( nssDecodedCert *  dc)

Definition at line 103 of file certdecode.c.

{
    if (!dc) {
       return PR_FAILURE;
    }
    switch(dc->type) {
    case NSSCertificateType_PKIX:
       return nssDecodedPKIXCertificate_Destroy(dc);
    default:
#if 0
       nss_SetError(NSS_ERROR_INVALID_ARGUMENT);
#endif
       break;
    }
    return PR_FAILURE;
}

Here is the call graph for this function:

static nssDecodedCert* nssDecodedPKIXCertificate_Create ( NSSArena *  arenaOpt,
NSSDER encoding 
) [static]

Definition at line 64 of file certdecode.c.

{
    return (nssDecodedCert *)NULL;
}
static PRStatus nssDecodedPKIXCertificate_Destroy ( nssDecodedCert *  dc) [static]

Definition at line 73 of file certdecode.c.

{
    return PR_FAILURE;
}