tfPkiCertificateClear

Jump to: navigation, search

Table of Contents >> Optional Protocols >> Cryptography


#include <trsecapi.h>


int tfPkiCertificateClear (int certType);


Function Description

This function clears all certificates of type 'certType', such as all certificates or all CRLs.


Parameters

  • 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
    'certType' is invalid.


Table of Contents >> Optional Protocols >> Cryptography