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


gsk_encode_export_request()

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

Encodes a certification renewal request as described in PKCS #10, Version 1.7: Certification Request.

Format

   #include <gskcms.h>

   gsk_status gsk_encode_export_request (
                                          pkcs_cert_request *  request,
                                          gskdb_export_format  format,
                                          gsk_buffer *         stream)                                 

Parameters

request
Specifies the certification renewal request.
format
Specifies the export format. These values may be specified:
gskdb_export_der_binary
Binary ASN.1 DERencoded.
gskdb_export_der_base64
Base64 ASN.1 DERencoded.
stream
Returns the byte stream for the encoded certification request. The application should call the gsk_free_buffer() routine to release the storage 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. This is a possible error:
[CMSERR_NO_MEMORY]
Insufficient storage is available.

Usage

The gsk_encode_export_request() routine exports a PKCS #10 certification request. The request can be exported using either the ASN.1 DER encoding for the request or the Base64 encoding of the binary value. A Base64 encoded stream will be in the local code page and will include the encoding header and footer lines.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014