RSA Security logo

RSA BSAFE Cert-C
API Reference

PKI_PROTECT_INFO Struct Reference

Contains the information needed to generate and/or validate cryptographic protection of the message.

Use PKI_PROTECT_INFO with the C_RequestPKICert(), C_WritePKICertRequestMsg(), and C_ReadPKICertResponseMsg() functions.

Data Fields
info A union that contains the information required to generate or validate protection of a PKI message.
secret - If a shared secret is being used to protect the message, this field should point to an ITEM that specifies the shared secret. The protection (envelope and/or signature) algorithms determine whether a shared secret or public/private key is needed.
protectionCtx - If the PKI message protection algorithms use a public or private key, this field should specify the certification-path context. It supplies both a source for any certificates required and a source for the private key, if one is needed.

#include <pkimsg.h>

01434 typedef struct {
01435   union {
01436     ITEM          *secret;         /* shared secret                             */
01437     CERT_PATH_CTX *protectionCtx;  /* for building sign/enc-related cert chains */
01438   } info;
01439 } PKI_PROTECT_INFO;

The documentation for this struct was generated from the following file:


RSA BSAFE® Cert-C 2.7 API Reference