RSA Security logo

RSA BSAFE Cert-C
API Reference

PKCS10_FIELDS Struct Reference

Allows viewing and updating of an opaque PKCS10_OBJ object.

The PKCS10_FIELDS structure allows viewing and updating information in an opaque PKCS10_OBJ object, by calling the C_GetPKCS10Fields() and C_SetPKCS10Fields() functions. This structure holds the information necessary to create a PCKS #10 certificate-request message.

Data Fields
version A UINT2 value that identifies the PKCS #10 version. Set it to PKCS10_VERSION_1.
subjectName A NAME_OBJ object that contains the subject name for the certificate to be requested.
publicKey An ITEM structure that holds a pointer to the DER-encoding of the subject's public key, obtained using the C_GetPKCS10Fields() function. It is not directly contained in the structure; the ITEM contains a pointer into the PKCS10_OBJ.
attribute An ATTRIBUTES_OBJ object that contains additional information about the subject of the certificate request. This is an optional field.
reserved Set this field to NULL_PTR; it is reserved for future use.

#include <pkcs10.h>

00098 typedef struct {
00099   UINT2          version;
00100   NAME_OBJ       subjectName;
00101   ITEM           publicKey;
00102   ATTRIBUTES_OBJ attribute;
00103   POINTER        reserved;               /* reserved for future use  */
00104 } PKCS10_FIELDS;

The documentation for this struct was generated from the following file:


RSA BSAFE® Cert-C 2.7 API Reference