| RSA BSAFE Cert-C |
Certificate Components for C |
| Crypto-C 6.2.1 Developer's Guide | ||
| Search |
#include "basetype.h"
Go to the source code of this file.
Functions | |
| int | C_CreateNameObject (NAME_OBJ *nameObject) |
| Creates a new name object, storing the result in nameObj. More... | |
| int | C_GetNameDER (NAME_OBJ nameObject, unsigned char **der, unsigned int *derLen) |
| Obtains the DER encoding of the value of nameObject, and stores a pointer to the DER encoding in der and its length in derLen. More... | |
| int | C_SetNameBER (NAME_OBJ nameObject, unsigned char *ber, unsigned int berLen) |
| Modifies the value of nameObject to the BER-encoded name ber with the length berLen. More... | |
| int | C_GetNameAVACount (NAME_OBJ nameObject, unsigned int *count) |
| Obtains the number of AVAs in nameObject's AVA list, and stores the result in count. More... | |
| int | C_GetNameAVA (NAME_OBJ nameObject, unsigned int index, unsigned char **type, unsigned int *typeLen, int *valueTag, unsigned char **value, unsigned int *valueLen, int *newLevel) |
| Obtains the AVA indexed by index in nameObj's AVA list. More... | |
| int | C_AddNameAVA (NAME_OBJ nameObject, unsigned char *type, unsigned int typeLen, int valueTag, unsigned char *value, unsigned int valueLen, int newLevel, unsigned int *index) |
| Adds an AVA to the end of nameObj's AVA list with the attribute type type, the attribute-value tag valueTag, and the attribute value value. More... | |
| int | C_IsSubjectSubordinateToIssuer (int *isSubordinate, NAME_OBJ subjectNameObject, NAME_OBJ issuerNameObject) |
| Checks whether the subject is subordinate to the issuer. More... | |
| int | C_ResetNameObject (NAME_OBJ nameObject) |
| Returns nameObj to the state it was in after it was created by C_CreateNameObject(), freeing any memory that was held by the object. More... | |
| void | C_DestroyNameObject (NAME_OBJ *nameObject) |
Destroys nameObj, frees the memory the name object occupied and sets nameObj to (NAME_OBJ)NULL_PTR. More... | |
| int | C_GetNameStringReverse (NAME_OBJ nameObj, char **nameString) |
| Returns a string form of the name object. More... | |
| int | C_GetNameString (NAME_OBJ nameObj, char **nameString) |
Returns a NUL-terminated UTF8-string form of the name object. More... | |
| int | C_SetNameString (NAME_OBJ nameObj, char *nameString) |
Replaces the value of nameObject with the value specified by a NUL-terminated UTF8-string form, nameString. More... | |
|
||||||||||||||||||||||||||||||||||||
|
Adds an AVA to the end of nameObj's AVA list with the attribute type type, the attribute-value tag valueTag, and the attribute value value. If newLevel is non-zero, the AVA is placed on a new level further from the root than the previous entry. Otherwise, it is placed on the same level as the previous entry. An AVA added after a call to C_CreateNameObject() or C_ResetNameObject() becomes the first entry in the AVA list. The first entry in the AVA list is always on the first level after the root.
|
|
|
Creates a new name object, storing the result in nameObj. If C_CreateNameObject() is unsuccessful, no memory is allocated and nameObj is set to
|
|
|
Destroys nameObj, frees the memory the name object occupied and sets nameObj to
|
|
||||||||||||||||||||||||||||||||||||
|
Obtains the AVA indexed by index in nameObj's AVA list. If the attribute type is one of the recognized types, then type and typeLen equal one of the predefined pairs of values (for example, |
|
||||||||||||
|
Obtains the number of AVAs in nameObject's AVA list, and stores the result in count.
|
|
||||||||||||||||
|
Obtains the DER encoding of the value of nameObject, and stores a pointer to the DER encoding in der and its length in derLen.
|
|
||||||||||||
|
Returns a
|
|
||||||||||||
|
Returns a string form of the name object. The string is a
|
|
||||||||||||||||
|
Checks whether the subject is subordinate to the issuer. Subordinate means that the issuer name is entirely contained within the subject name, exactly as it appears in the issuer name. A non-zero value is assigned to isSubordinate if the subject is subordinate to the issuer. Otherwise, a
|
|
|
Returns nameObj to the state it was in after it was created by C_CreateNameObject(), freeing any memory that was held by the object.
|
|
||||||||||||||||
|
Modifies the value of nameObject to the BER-encoded name ber with the length berLen. A separate copy of the BER-encoded name is allocated inside the name object so that ber can be changed after the call to this function.
|
|
||||||||||||
|
Replaces the value of nameObject with the value specified by a
|