Module: Miscellaneous
Definition in file ToolkitutilsPrivate.h.
Go to the source code of this file.
Functions | |
void | BuildCACX509V3DistinguishedName (unsigned char *dn, CACX509V3DistinguishedName *cacx509v3dn) |
void | BuildCACX509V3RelativeDistinguishedName (unsigned char *rdn, CACX509V3RelativeDistinguishedName *cacx509v3rdn) |
void | BuildCACX509V3AttributeTypeAndValue (char *attrTypeAndValue, CACX509V3AttributeTypeAndValue *cacx509v3atadv) |
void | FreeName (CACX509V3Name **dest) |
void | FreeGeneralName (CACX509V3GeneralName &objName) |
void BuildCACX509V3AttributeTypeAndValue | ( | char * | attrTypeAndValue, | |
CACX509V3AttributeTypeAndValue * | cacx509v3atadv | |||
) |
Interface: Subsystem
This is a helper function that takes a char* to an attribute type and value string from an RDN (e.g. "cn=Joe") and returns ptr to populated CACX509V3AttributeTypeAndValue
CPKIFException(COMMON_INVALID_INPUT) |
attrTypeAndValue | [in] Pointer to a buffer containing an attribute type and value string from an RDN |
cacx509v3atadv | [out] Pointer to CACX509V3AttributeTypeAndValue object |
Definition at line 1876 of file ToolkitUtils.cpp.
References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, ConvertStringToASN1OBJID(), CopyOID(), MAXOID, STRCASECMP, and TOOLKIT_UTILS.
Referenced by BuildCACX509V3RelativeDistinguishedName().
void BuildCACX509V3DistinguishedName | ( | unsigned char * | dn, | |
CACX509V3DistinguishedName * | cacx509v3dn | |||
) |
Interface: Subsystem
This is a helper function that constructs a DistinguishedName
CPKIFException(COMMON_INVALID_INPUT) |
dn | [in] Pointer to a buffer containing a NULL-terminated string representation of a distinguished name |
cacx509v3dn | [out] A pointer to CACX509V3DistinguishedName |
Definition at line 1517 of file ToolkitUtils.cpp.
References BuildCACX509V3RelativeDistinguishedName(), CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, NEW_NEXT_AND_ADVANCE, NEW_NODE, PKIFNameMemoryHelper::pCACX509V3RDN, SET_HEAD_TAIL_INCREMENT, and TOOLKIT_UTILS.
Referenced by GetEncGenNameFromStr(), GetPKIFGenNameFromStr(), and GetPKIFNameFromStr().
void BuildCACX509V3RelativeDistinguishedName | ( | unsigned char * | rdn, | |
CACX509V3RelativeDistinguishedName * | cacx509v3rdn | |||
) |
Interface: Subsystem
This is a
CPKIFException(COMMON_INVALID_INPUT) |
rdn | [in] Pointer to a buffer containing a NULL-terminated string representation of a relative distinguished name |
cacx509v3rdn | A pointer to CACX509V3RelativeDistinguishedName |
Definition at line 1702 of file ToolkitUtils.cpp.
References BuildCACX509V3AttributeTypeAndValue(), COMMON_INVALID_INPUT, NEW_NEXT_AND_ADVANCE, NEW_NODE, SET_HEAD_TAIL_INCREMENT, and TOOLKIT_UTILS.
Referenced by BuildCACX509V3DistinguishedName().
void FreeGeneralName | ( | CACX509V3GeneralName & | objName | ) |
Interface: Subsystem
This function frees the contents of the object that was passed as a parameter.
objName | [in] A reference to CACX509V3GeneralName object. |
Definition at line 2641 of file ToolkitUtils.cpp.
References FreeName().
void FreeName | ( | CACX509V3Name ** | dest | ) |
Interface: Subsystem
This function frees memory allocated by name creation functions
dest | [in] A pointer to an object that will be freed |
Definition at line 2603 of file ToolkitUtils.cpp.
Referenced by FreeGeneralName().