| RSA BSAFE Micro Edition Suite |
Streamlined security for mobile and embedded devices |
 
![]() |
Typedefs | |
| typedef int(* | R_CERT_STORE_CB_T )(void *, void *) |
| The type of callback function that iterates over objects in the store. More... | |
Functions | |
| int | R_CERT_STORE_new (R_CERT_STORE_CTX *ctx, R_CERT_STORE **obj) |
| Creates a new store object obj. More... | |
| int | R_CERT_STORE_free (R_CERT_STORE *obj) |
| Deallocates the store object obj and clears any state associated with the object. More... | |
| int | R_CERT_STORE_get_info (R_CERT_STORE *obj, R_CERT_STORE_INFO info_id, void *value) |
| Returns information from the certificate store object. More... | |
| int | R_CERT_STORE_set_info (R_CERT_STORE *obj, R_CERT_STORE_INFO info_id, void *value) |
| Sets information into the certificate store object for the specified information identifier. More... | |
| int | R_CERT_STORE_init (R_CERT_STORE *obj) |
| Initializes the state of the certificate store object. More... | |
| int | R_CERT_STORE_update (R_CERT_STORE *obj) |
| Updates the certificate store content using the certificate in the certificate store object obj. More... | |
| int | R_CERT_STORE_add (R_CERT_STORE *obj) |
| Adds the certificate associated with the certificate store object obj into the certificate store context. More... | |
| int | R_CERT_STORE_delete (R_CERT_STORE *obj) |
| Deletes the certificate entry in the certificate store object obj from the certificate store. More... | |
| int | R_CERT_STORE_find (R_CERT_STORE *obj) |
| Calls a custom search callback, specified by the application, to retrieve a certificate from the store. More... | |
| int | R_CERT_STORE_next (R_CERT_STORE *obj) |
| Retrieves the certificate details of the certificate at the next index in the store. More... | |
| int | R_CERT_STORE_find_entry_by_subject (R_CERT_STORE *obj, R_CERT_NAME *subject, R_CERT_STORE_CERT_TYPE cert_class) |
| Loads the certificate store object obj with the details of the first certificate store entry found with subject name subject and certificate class cert_class. More... | |
| int | R_CERT_STORE_find_entry_by_issuer (R_CERT_STORE *obj, R_CERT_NAME *issuer, R_CERT_STORE_CERT_TYPE cert_class) |
| Loads the certificate store object obj with the details of the first certificate store entry found with issuer name issuer and certificate class cert_class. More... | |
| int | R_CERT_STORE_find_entry_by_pubkey (R_CERT_STORE *obj, R_PKEY *pubkey, R_CERT_STORE_CERT_TYPE cert_class) |
| Loads the certificate store object obj with the details of the first certificate store entry found with public key pubkey and certificate class cert_class. More... | |
| int | R_CERT_STORE_find_entry_by_fingerprint (R_CERT_STORE *obj, R_ITEM *fprint, R_CERT_STORE_CERT_TYPE cert_class) |
| Loads the certificate store object obj with the details of the first certificate store entry found with fingerprint fprint and certificate class cert_class. More... | |
| int | R_CERT_STORE_find_entry_by_issuer_and_serial (R_CERT_STORE *obj, R_CERT_NAME *issuer, R_ITEM *serial, int cert_class) |
| Loads the certificate store object obj with the details of the first certificate store entry found with issuer name issuer, serial number serial and certificate class cert_class. More... | |
| int | R_CERT_STORE_set_cert_data (R_CERT_STORE *obj, R_CERT_STORE_CERT_DATA *data) |
| Sets certificate information from the R_CERT_STORE_CERT_DATA structure data into the certificate store object obj. More... | |
| int | R_CERT_STORE_get_cert_data (R_CERT_STORE *obj, R_CERT_STORE_CERT_DATA *data) |
| Retrieves certificate information into the R_CERT_STORE_CERT_DATA structure data from the certificate store object obj. More... | |
| int | R_CERT_STORE_set_cert (R_CERT_STORE *obj, R_CERT *cert, R_ITEM *id) |
| Sets the certificate cert and user-defined identifier id into the certificate store object obj. More... | |
| int | R_CERT_STORE_get_cert (R_CERT_STORE *obj, R_CERT **cert, R_ITEM **id) |
| Retrieves the certificate cert and user-defined identifier id from the certificate store object obj. More... | |
| int | R_CERT_STORE_set_cert_state (R_CERT_STORE *obj, R_CERT_STORE_STATE state) |
| Sets the state of the certificate, which includes the trust level, into the certificate store object obj. More... | |
| int | R_CERT_STORE_get_cert_state (R_CERT_STORE *obj, R_CERT_STORE_STATE *state) |
| Retrieves the state of the certificate, which includes the trust level, from the certificate store object obj. More... | |
| int | R_CERT_STORE_set_cert_class (R_CERT_STORE *obj, R_CERT_STORE_CERT_TYPE cert_class) |
| Sets the class of the certificate into the certificate store object obj. More... | |
| int | R_CERT_STORE_get_cert_class (R_CERT_STORE *obj, R_CERT_STORE_CERT_TYPE *cert_class) |
| Retrieves the class of the certificate cert_class from the certificate store object obj. More... | |
| int | R_CERT_STORE_set_compare_func (R_CERT_STORE *obj, R_CERT_STORE_CB_T *func) |
| Sets the function to use for matching when searching through the certificates in the certificate store. More... | |
|
|
The type of callback function that iterates over objects in the store. This function is also used as a checking function when stepping through the store.
|
|
|
Adds the certificate associated with the certificate store object obj into the certificate store context. If a matching certificate is found in the store, this function updates the entry instead of adding a new certificate store entry.
|
|
|
Deletes the certificate entry in the certificate store object obj from the certificate store. The user identifer, set into obj via R_CERT_STORE_set_info() is used to determine which entry is removed. In the case where the user identifer is
|
|
|
Calls a custom search callback, specified by the application, to retrieve a certificate from the store. The details of the matching certificate (if available) are loaded into the R_CERT_STORE object obj. This function returns no error if the object matches its conditions.
|
|
||||||||||||||||
|
Loads the certificate store object obj with the details of the first certificate store entry found with fingerprint fprint and certificate class cert_class.
|
|
||||||||||||||||
|
Loads the certificate store object obj with the details of the first certificate store entry found with issuer name issuer and certificate class cert_class.
|
|
||||||||||||||||||||
|
Loads the certificate store object obj with the details of the first certificate store entry found with issuer name issuer, serial number serial and certificate class cert_class.
|
|
||||||||||||||||
|
Loads the certificate store object obj with the details of the first certificate store entry found with public key pubkey and certificate class cert_class.
|
|
||||||||||||||||
|
Loads the certificate store object obj with the details of the first certificate store entry found with subject name subject and certificate class cert_class.
|
|
|
Deallocates the store object obj and clears any state associated with the object. As no operations can be performed on a store object once it has been deallocated, this function should be the last operation performed on an object.
|
|
||||||||||||||||
|
Retrieves the certificate cert and user-defined identifier id from the certificate store object obj. The certificate cert returned by this function must be explicitly freed with R_CERT_free().
|
|
||||||||||||
|
Retrieves the class of the certificate cert_class from the certificate store object obj.
|
|
||||||||||||
|
Retrieves certificate information into the R_CERT_STORE_CERT_DATA structure data from the certificate store object obj. Any certificate returned by this function via data must be explicitly freed with R_CERT_free().
|
|
||||||||||||
|
Retrieves the state of the certificate, which includes the trust level, from the certificate store object obj.
|
|
||||||||||||||||
|
Returns information from the certificate store object.
|
|
|
Initializes the state of the certificate store object. If iterating through all certificates in the store, use this function to reset to the start.
|
|
||||||||||||
|
Creates a new store object obj. The object is used to perform operations on the store such as adding certificates, finding certificates and retrieving information from certificates.
|
|
|
Retrieves the certificate details of the certificate at the next index in the store. The index of the current certificate in obj is used to determine which is the next certificate store entry. If there are no certificate details loaded into obj the first certificate entry in the store is returned. The certificate itself can be retrieved from obj via R_CERT_STORE_get_cert().
|
|
||||||||||||||||
|
Sets the certificate cert and user-defined identifier id into the certificate store object obj. Frees any certificate currently referenced by obj. As the object assumes ownership of the new certificate, the calling application should not explicitly free it.
|
|
||||||||||||
|
Sets the class of the certificate into the certificate store object obj.
|
|
||||||||||||
|
Sets certificate information from the R_CERT_STORE_CERT_DATA structure data into the certificate store object obj. This function will free any certificate, private key or Certificate Revocation List currently referenced by obj. The object assumes ownership of the new certificate, private key and CRL so the application should not free these objects explicitly.
If either (or both) the private key or CRL is not required they must be initialized to
|
|
||||||||||||
|
Sets the state of the certificate, which includes the trust level, into the certificate store object obj.
|
|
||||||||||||
|
Sets the function to use for matching when searching through the certificates in the certificate store.
|
|
||||||||||||||||
|
Sets information into the certificate store object for the specified information identifier.
|
|
|
Updates the certificate store content using the certificate in the certificate store object obj. R_CERT_STORE_add() and R_CERT_STORE_update() have the same underlying implementation. If a matching certificate is not found in the store R_CERT_STORE_update() causes that entry to be added rather than return R_ERROR_NOT_FOUND. The R_CERT_STORE_INFO_USER_ID is used to determine whether an entry is unique. This means that the same certificate may be added into the store multiple times via different user ids. In the case where the user id is
|