![]() |
RSA BSAFE Cert-C |
#include "basetype.h"
#include "cms.h"
Go to the source code of this file.
Defines | |
#define | C_CMS_IO_FLAGS_COMPLETE |
Flag(s) for use with C_ReadCMSMessage() and C_WriteCMSMessage(). | |
Typedefs | |
typedef POINTER | C_CMS_OBJ |
Represents a CMS message object. More... | |
Functions | |
int | C_CreateCMSObject (CERTC_CTX ctx, C_CMS_OBJ *pCMSObj) |
Creates a new CMS message object and stores the result in pCMSObj. More... | |
void | C_DestroyCMSObject (C_CMS_OBJ *pCMSObj) |
Destroys a CMS message object and frees its associated memory. More... | |
int | C_SetCMSMessageType (C_CMS_OBJ cmsObj, C_CMS_MSG_TYPE msgType) |
Sets the CMS message type. More... | |
int | C_GetCMSMessageType (C_CMS_OBJ cmsObj, C_CMS_MSG_TYPE *pMsgType, ITEM *pOID) |
Gets the message type of a CMS message object. More... | |
int | C_ReadCMSMessage (C_CMS_OBJ cmsObj, unsigned int maxReadLen, unsigned char *pData, unsigned int *pDataLen, UINT4 *pFlags) |
Reads up to maxReadLen bytes from a CMS message object. More... | |
int | C_WriteCMSMessage (C_CMS_OBJ cmsObj, unsigned char *pData, unsigned int dataLen, UINT4 flags) |
Writes (adds) data into a CMS message object. More... | |
int | C_GetCMSInnerDataContentType (C_CMS_OBJ cmsObj, C_CMS_MSG_TYPE *pContentType, ITEM *pOID) |
Gets the message (content) type of encapsulated data within a CMS message object. More... | |
int | C_GetCMSRecipients (C_CMS_OBJ cmsObj, LIST_OBJ *pRecipientList) |
Gets the list of RECIPIENT_INFO for which an EnvelopedData message has been composed. More... | |
int | C_AddCMSRecipient (C_CMS_OBJ cmsObj, RECIPIENT_INFO *pRecipient) |
Adds a RECIPIENT_INFO to the list of recipients of an EnvelopedData message. More... |
|
Represents a CMS message object. The following restrictions apply to all interface functions:
|
|
Adds a
|
|
Creates a new CMS message object and stores the result in pCMSObj. If unsuccessful, no memory is allocated, pCMSObj is set to
|
|
Destroys a CMS message object and frees its associated memory. It sets pCMSObj to
|
|
Gets the message (content) type of encapsulated data within a CMS message object. This function must be used when the content type of data being read from a CMS object is not known in advance. An additional
If the encapsulated data type is not yet known because not enough of the input data stream has been parsed, the Cert-C error
|
|
Gets the message type of a CMS message object.
|
|
Gets the list of RECIPIENT_INFO for which an EnvelopedData message has been composed.
|
|
Reads up to maxReadLen bytes from a CMS message object. End of input is signaled by the presence of the
Data read from a
|
|
Sets the CMS message type. This API is used when composing CMS messages. Changing an existing object from one defined type to another is not supported.
|
|
Writes (adds) data into a CMS message object. The final write into the object must be signaled by the presence of the
The first call to this API is the indication that all other
If the
|