ToolkitutilsPrivate.h File Reference


Detailed Description

Subsystem: Miscellaneous/Utility (PKIFUTILS)

Module: Miscellaneous

Id
ToolkitutilsPrivate.h 9100 2008-10-29 12:22:32Z agalustyan

Definition in file ToolkitutilsPrivate.h.

This graph shows which files directly or indirectly include this file:

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)


Function Documentation

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

Returns:
None
Exceptions:
CPKIFException(COMMON_INVALID_INPUT) 
Parameters:
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

Returns:
None
Exceptions:
CPKIFException(COMMON_INVALID_INPUT) 
Parameters:
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

Returns:
None
Exceptions:
CPKIFException(COMMON_INVALID_INPUT) 
Parameters:
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.

Returns:
None
Parameters:
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

Returns:
None
Parameters:
dest  [in] A pointer to an object that will be freed

Definition at line 2603 of file ToolkitUtils.cpp.

Referenced by FreeGeneralName().


Generated on Mon Nov 15 11:19:41 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6