| RSA BSAFE Cert-C |
Certificate Components for C |
| Crypto-C 6.2.1 Developer's Guide | ||
| Search |
#include "basetype.h"
#include "certext.h"
Go to the source code of this file.
Data Structures | |
| CRL_ENTRY_INFO | |
| Allows viewing and alteration of aspects of a CRL entry in a CRL_ENTRIES_OBJ object via C_GetCRLEntry() and C_AddCRLEntry(). More... | |
| CRL_FIELDS | |
Allows viewing and updating of an opaque CRL_OBJ object via C_GetCRLFields() and C_SetCRLFields(). More... | |
Typedefs | |
| typedef struct | CRL_ENTRY_INFO |
| Allows viewing and alteration of aspects of a CRL entry in a CRL_ENTRIES_OBJ object via C_GetCRLEntry() and C_AddCRLEntry(). | |
| typedef struct | CRL_FIELDS |
Allows viewing and updating of an opaque CRL_OBJ object via C_GetCRLFields() and C_SetCRLFields(). | |
Functions | |
| int | C_GetCRLEntriesCount (CRL_ENTRIES_OBJ crlEntriesObject, unsigned int *count) |
Sets count to the number of revocation entries contained in crlEntriesObj, which is typically the crlEntries member of a CRL_FIELDS structure. More... | |
| int | C_GetCRLEntry (CRL_ENTRIES_OBJ crlEntriesObject, CRL_ENTRY_INFO *crlEntryInfo, unsigned int crlEntryIndex) |
| Gets the entry in the CRL list of crlEntriesObj at position index. More... | |
| int | C_AddCRLEntry (CRL_ENTRIES_OBJ crlEntriesObject, CRL_ENTRY_INFO *crlEntryInfo, unsigned int *index) |
| Adds a new CRL entry into the crlEntriesObject with the value given in crlEntryInfo. More... | |
| int | C_DeleteCRLEntry (CRL_ENTRIES_OBJ crlEntriesObject, unsigned int crlEntryIndex) |
| Deletes the entry in crlEntriesObj referenced by index. More... | |
| int | C_FindCRLEntryBySerialNumber (CRL_ENTRIES_OBJ crlEntriesObject, unsigned char *serialNumber, unsigned int serialNumberLen, unsigned int *crlEntryIndex) |
| Searches for the CRL entry list in crlEntriesObject for an entry with the given serialNumber. More... | |
| void | C_ResetCRLEntries (CRL_ENTRIES_OBJ crlEntriesObject) |
Returns crlEntriesObj to the state it was in after it was created, by setting the number of entries to 0 (zero) and freeing any memory that was held by the object. More... | |
| int | C_CreateCRLObject (CRL_OBJ *crlObj, CERTC_CTX ctx) |
| Stores a copy of applContext, the Cert-C context, in the resulting crlObject. More... | |
| int | C_CreateCRLObjectReference (CERTC_CTX ctx, CRL_OBJ crlObj, CRL_OBJ *crlObjRef) |
| Creates a new reference to an existing crlObject. More... | |
| void | C_DestroyCRLObject (CRL_OBJ *crlObject) |
Frees the memory used by crlObject, and sets crlObject to (CRL_OBJ)NULL_PTR. More... | |
| int | C_PrepareUnsignedCRLForIssuer (CRL_OBJ crlObject, NAME_OBJ issuerName) |
Sets the CRL version in crlObject to CRL_VERSION_1, the issuer to issuerName, the signature algorithm to SA_MD2_WITH_RSA_ENCRYPTION, and the CRL_ENTRIES_OBJ to an empty list. More... | |
| int | C_SetCRLFields (CRL_OBJ crlObject, CRL_FIELDS *crlFields) |
| Sets crlObject with the value in crlFields. More... | |
| int | C_GetCRLFields (CRL_OBJ crlObject, CRL_FIELDS *crlFields) |
| Fills crlFields with the value found in crlObject. More... | |
| int | C_GetCRLDER (CRL_OBJ crlObject, unsigned char **der, unsigned int *derLen) |
| Obtains the DER encoding of the value of crlObject, and stores a pointer to the DER encoding in der and its length in derLen. More... | |
| int | C_SetCRLBER (CRL_OBJ crlObject, unsigned char *ber, unsigned int berLen) |
| Modifies the value of crlObject to the BER-encoded CRL given by crlBER and crlBERLen. More... | |
| int | C_GetCRLInnerDER (CRL_OBJ crlObject, unsigned char **innerDER, unsigned int *innerDERLen) |
| Obtains the DER encoding of the "to be signed" value of crlObject, and stores a pointer to the DER encoding in innerDER and its length in innerDERLen. More... | |
| int | C_SetCRLInnerBER (CRL_OBJ crlObject, unsigned char *innerBER, unsigned int innerBERLen) |
| Sets the value of crlObject to the BER encoding of a CRL's "to be signed" value given by innerBER, of length innerBERLen. More... | |
| int | C_SignCRL (CRL_OBJ crlObj, B_KEY_OBJ privateKey,...) |
| Signs a CRL using privateKey. More... | |
| int | C_VerifyCRLSignature (CRL_OBJ crlObj, B_KEY_OBJ publicKey,...) |
| Uses publicKey, the public key of the issuer, to check the signature of the CRL in crlObject. More... | |
|
||||||||||||||||
|
Adds a new CRL entry into the crlEntriesObject with the value given in crlEntryInfo. The data structure for crlEntryInfo is
|
|
||||||||||||
|
Stores a copy of applContext, the Cert-C context, in the resulting crlObject. If this function is unsuccessful, no memory will be allocated and crlObject will be set to
|
|
||||||||||||||||
|
Creates a new reference to an existing crlObject. Many references to a CRL object can be created, and as with the original crlObject, each reference must be destroyed via C_DestroyCRLObject(). The reference can be treated exactly as any other CRL object, with one exception: modifying one reference to a CRL object modifies references to that object.
|
|
||||||||||||
|
Deletes the entry in crlEntriesObj referenced by index. The entries after index are all shifted back by one. The crlEntriesObj is typically the
|
|
|
Frees the memory used by crlObject, and sets crlObject to
|
|
||||||||||||||||||||
|
Searches for the CRL entry list in crlEntriesObject for an entry with the given serialNumber. If an entry is found, its index in the list is returned in entryIndex. Otherwise,
|
|
||||||||||||||||
|
Obtains the DER encoding of the value of crlObject, and stores a pointer to the DER encoding in der and its length in derLen.
|
|
||||||||||||
|
Sets count to the number of revocation entries contained in crlEntriesObj, which is typically the
|
|
||||||||||||||||
|
Gets the entry in the CRL list of crlEntriesObj at position index. The data structure for crlEntryInfo is
|
|
||||||||||||
|
Fills crlFields with the value found in crlObject. The data structure for crlFields is
|
|
||||||||||||||||
|
Obtains the DER encoding of the "to be signed" value of crlObject, and stores a pointer to the DER encoding in innerDER and its length in innerDERLen. The "to be signed" part of the CRL is the inner value without the issuer's signature.
|
|
||||||||||||
|
Sets the CRL version in crlObject to
|
|
|
Returns crlEntriesObj to the state it was in after it was created, by setting the number of entries to
|
|
||||||||||||||||
|
Modifies the value of crlObject to the BER-encoded CRL given by crlBER and crlBERLen. A separate copy of the BER-encoded CRL is allocated inside the CRL object so that crlBER can be changed after calling this function. If crlBER includes X.509 v3 extensions, these extensions are parsed and checked against the registered and supported standard extensions.
If the incoming extension's criticality is
|
|
||||||||||||
|
Sets crlObject with the value in crlFields. This value may be the current working value of crlObject, or another CRL object. After calling this function, the value in crlFields becomes the actual value of crlObject. The data structure for crlFields is
The
|
|
||||||||||||||||
|
Sets the value of crlObject to the BER encoding of a CRL's "to be signed" value given by innerBER, of length innerBERLen. The "to be signed" part of the CRL is the inner value without the issuer signature. A separate copy of the BER encoding is allocated inside the CRL object so that innerBER can be changed after calling this function.
If the inner CRL includes X.509 v3 extensions, these extensions are parsed and saved in crlObject. If the incoming extension criticality is
|
|
||||||||||||||||
|
Signs a CRL using privateKey. This function contains extra variable parameters that make it backward-compatible with BCERT v1.
|
|
||||||||||||||||
|
Uses publicKey, the public key of the issuer, to check the signature of the CRL in crlObject. This function contains extra variable parameters that make it backward-compatible with BCERT v1.
|