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


gsk_decode_public key()

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

Decodes a public key.

Format

   #include <gskcms.h>

   gsk_status gsk_decode_public_key ( 
                                      gsk_buffer *                    stream, 
                                      x509_public_key_info *          public_key)

Parameters

stream
Specifies the ASN.1 stream for the encoded public key.
public_key
Returns the decoded public key. The application should release the public key when it is no longer needed by calling the gsk_free_public_key_info() routine.

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:
[ASN_NO_MEMORY]
Insufficient memory is available.

Usage

The gsk_decode_public_key() routine will decode an ASN.1 DER-encoded public key. The public key must have been encoded as described in RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014