z/OS Cryptographic Services System SSL Programming
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


gsk_read_content_msg()

z/OS Cryptographic Services System SSL Programming
SC14-7495-00

Processes a PKCS #7 message.

Format

#include <gskcms.h>

gsk_status gsk_read_content_msg (
                                 gsk_buffer *             stream,
                                 pkcs_content_info *      content_info)

Parameters

stream
Specifies the ASN.1 DER-encoded stream to be processed.
content_info
Returns the content information for the message. The application should call the gsk_free_content_info() routine to release the content information when it is no longer needed.

Results

The function return value will be 0 if no error is detected. Otherwise, it will be one of the return codes listed in the gskcms.h include file. These are some possible errors:

[CMSERR_NO_MEMORY]
Insufficient storage is available

Usage

The gsk_read_content_msg() routine processes a PKCS #7 (Cryptographic Message Syntax) content information message and returns the content information. The message content type can be any of the types defined by the PKCS #7 specification.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014