RSA Security logo

RSA BSAFE Cert-C
API Reference

MEMORY_DB_PARAMS Struct Reference

Passes initialization parameters to the Cert-C In-Memory Database service provider's initialization functions.

When you use C_InitializeCertC() to register the Cert-C In-Memory Database service provider, the corresponding handlerParams should point to a MEMORY_DB_PARAMS structure. Or, if you use C_RegisterService() to register the Cert-C In-Memory Database service provider, the corresponding params should point to a MEMORY_DB_PARAMS structure. For each type of record (certificate, CRL, private-key, or transaction), the application may provide no list object, an empty list, or a list that already contains one or more instances of the appropriate type of object.

Data Fields
certs Set this field to NULL_PTR or to a list object created using C_CreateListObject. If a valid list object is supplied, it may be empty or it may contain one or more entries of type CERT_OBJ. If this field is set to NULL_PTR, the Cert-C In-Memory Database service provider returns E_NO_SERVICE when asked to insert, select, or delete certificates.
crls Set this field to NULL_PTR or to a list object created using C_CreateListObject. If a valid list object is supplied, it may be empty or it may contain one or more entries of type CRL_OBJ. If this field is set to NULL_PTR, the Cert-C In-Memory Database service provider returns E_NO_SERVICE when asked to insert, select, or delete CRLs.
spkis Set this field to NULL_PTR or to a list object created using C_CreateListObject. If a valid list object is supplied, it may be empty or it may contain one or more entries of type (ITEM *). Each spkis entry should contain a DER-encoded subject public-key object that matches the private-key object in the corresponding entry of the keys list.
You must maintain a one-to-one correspondence between the entries of the spkis list and the entries of the keys list. If this field is set to NULL_PTR, the Cert-C In-Memory Database service provider returns E_NO_SERVICE when asked to insert, select, or delete public keys.
keys Set this field to NULL_PTR or to a list object created using C_CreateListObject. If a valid list object is supplied, it may be empty or it may contain one or more entries of type B_KEY_OBJ. Each keys entry should contain a private-key object that matches the certificate object in the corresponding entry of the certs list. You must maintain a one-to-one correspondence between the entries of the certs list and the entries of the keys list. If this field is set to NULL_PTR, the Cert-C In-Memory Database service provider returns E_NO_SERVICE when asked to insert, select, or delete private-keys.

#include <imdb.h>

00103 typedef struct {
00104   LIST_OBJ certs;              /* cert list */
00105   LIST_OBJ crls;               /* CRL list */
00106   LIST_OBJ spkis;              /* list of subject public key info */
00107   LIST_OBJ keys;               /* private key list */
00108 } MEMORY_DB_PARAMS;

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


RSA BSAFE® Cert-C 2.7 API Reference