RSA BSAFE Micro Edition Suite

Streamlined security for mobile and embedded devices

Search  Print

Context Information Types

This section details the parts of a certificate context R_CERT_CTX that can be set and/or retrieved. The following table lists the data types to pass into value when calling R_CERT_CTX_get_info().

Identifier Value Data Type
R_CERT_CTX_INFO_R_LIB_CTX R_LIB_CTX **
R_CERT_CTX_INFO_CERT_TYPE int*
R_CERT_CTX_INFO_R_CR_CTX R_CR_CTX **
R_CERT_CTX_INFO_R_PKEY_CTX R_PKEY_CTX **

The following table details the data types to pass into value when calling R_CERT_CTX_set_info().

Identifier Value Data Type
R_CERT_CTX_INFO_R_CR_CTX R_CR_CTX *
R_CERT_CTX_INFO_R_PKEY_CTX R_PKEY_CTX *

Defines

#define R_CERT_CTX_INFO_R_LIB_CTX
 Indicates the library context associated with the certificate context. More...

#define R_CERT_CTX_INFO_CERT_TYPE
 Indicates the type of certificate that can be handled by certificates created from the context. More...

#define R_CERT_CTX_INFO_R_CR_CTX
 Indicates the cryptographic context associated with the certificate request context. More...

#define R_CERT_CTX_INFO_R_PKEY_CTX
 Indicates the public key context associated with the certificate request context. More...


Define Documentation

#define R_CERT_CTX_INFO_CERT_TYPE
 

Indicates the type of certificate that can be handled by certificates created from the context. The following table details the usage of the identifier in Context Functions.

Function Value Data Type Description
R_CERT_CTX_get_info() int* Returns a Certificate Types value.

#define R_CERT_CTX_INFO_R_CR_CTX
 

Indicates the cryptographic context associated with the certificate request context. The following table details the usage of the identifier in Context Functions.

Function Value Data Type Description
R_CERT_CTX_get_info() R_CR_CTX ** Returns a reference to the cryptographic context.
R_CERT_CTX_set_info() R_CR_CTX * Passes the cryptographic context to use to create a cryptographic structure in the certificate request code. The application maintains ownership of the cryptographic context.

#define R_CERT_CTX_INFO_R_LIB_CTX
 

Indicates the library context associated with the certificate context. The following table details the usage of the identifier in Context Functions.

Function Value Data Type Description
R_CERT_CTX_get_info() R_LIB_CTX ** Returns the library context associated with the certificate context.

#define R_CERT_CTX_INFO_R_PKEY_CTX
 

Indicates the public key context associated with the certificate request context. The following table details the usage of the identifier in Context Functions.

Function Value Data Type Description
R_CERT_CTX_get_info() R_PKEY_CTX ** Returns a reference to the public key context.
R_CERT_CTX_set_info() R_PKEY_CTX * Passes the public key context to use to create a public key structure in the certificate request code.


Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 072-001001-2100-001-000 - 2.1