z/OS Open Cryptographic Services Facility Application Programming
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


IBM Standard Trust Policy Library, Version 1.0

z/OS Open Cryptographic Services Facility Application Programming
SC24-5899-01

The files required for the IBM Standard Trust Policy Library, Version 1.0 are:

  • ibmtp.so
  • ibmtp.h

The IBM Standard Trust Policy Library provides a simple generic service for verifying chains of X.509 certificates. The current version does not support operations that require DL operations. This module expects X.509 Version 3 signed certificates in ASN/DER-encoded format. In order to verify a given certificate, the application should supply the complete chain (see Table 7). This is to be used in conjunction with the IBM Certificate Library, Version 1.0 service provider and the IBM Software Service Cryptographic Provider, Version 1.0.

Table 7. IBM Standard Trust Policy Library OCSF Functions
FunctionsSupportedComments
CSSM_TP_CertSignNo
CSSM_TP_CertRevokeNo
CSSM_TP_CrlSignNo
CSSM_TP_CrlVerifyNo
CSSM_TP_ApplyCrlToDbNo
CSSM_TP_CertGroupConstructNo
CSSM_TP_CertGroupPruneNo
CSSM_TP_CertGroupVerifyYesSee Note 1
CSSM_TP_PassThroughNo
Notes:
  1. CSSM_TP_CertGroupVerify - The application should supply one anchor certificate and an ordered chain of certificates in the CertToBeVerified argument.

    These function arguments are ignored: Evidence, EvidenceSize, Action, policyIdentifers, NumberOfPolicyIdentifiers, VerificationAbortOn, VerifyScope, ScopeSize, DBList, Data.

    This function returns these error codes as shown in Table 8.

    Table 8. CSSM_TP_CertGroupVerify Error Codes
    Error CodeDescription
    CSSM_TP_INVALID_TP_HANDLETPHandle argument is NULL or invalid.
    CSSM_TP_INVALID_CL_HANDLECLHandle argument is NULL or invalid.
    CSSM_TP_INVALID_CSP_HANDLECSPHandle argument is NULL or invalid.
    CSSM_TP_INVALID_DATA_POINTERCertToBeVerified argument is NULL or invalid. This argument is invalid if the length is set to 0 or the pointer to data is NULL.
    CSSM_TP_INVALID_CC_HANDLEThis error occurs if TP is unable to create a cryptographic context using the supplied CSPHandle and the certificates.
    CSSM_TP_ANCHOR_NOT_SELF_SIGNEDThe supplied anchor certificate is not self-signed.
    CSSM_TP_ANCHOR_NOT_FOUNDThe supplied anchor certificate is not the anchor for any of the certificates in the supplied chain.
    CSSM_TP_CERT_VERIFY_FAILThe supplied certificate chain cannot be verified.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014