tfPkiCertificateDelete

Jump to: navigation, search

Table of Contents >> Optional Protocols >> Cryptography


#include <trsecapi.h>


int tfPkiCertificateDelete (
ttUserVoidPtr idPtr,
int certType
);


Function Description

This function delete a certificate from the certificate database. The user must define TM_USE_PKI to use this function.


Parameters

  • idPtr
    A pointer to the ID of the certificate to be deleted.
  • certType
    The certificate holder type (see below).


Possible 'certType' Values

Name Value Description
TM_PKI_CERT_LOCAL (ttUser8Bit)0x01 This certificate is local.
TM_PKI_CERT_NONLOCAL (ttUser8Bit)0x02 This certificate is a general one (i.e. a CA or a peer's certificate).
TM_PKI_CERT_CRL (ttUser8Bit)0x04 This is a CRL (Certificate Revocation List).
TM_PKI_CERT_ROOTCA (ttUser8Bit)0x08 This certificate is a root CA's certificate. This must be used in conjunction with the TM_PKI_CERT_NONLOCAL flag.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    One of the parameters is invalid.


Table of Contents >> Optional Protocols >> Cryptography