ASN1HelperLib.h File Reference


Detailed Description

Subsystem: Miscellaneous/Utility (PKIFUTILS)

Module: Miscellaneous

Id
ASN1HelperLib.h 5678 2007-02-09 00:22:12Z gbeier

Definition in file ASN1HelperLib.h.

#include "ooasn1.h"
#include "asn1ber.h"
#include "PKIFString.h"
#include "PKIX1Implicit88.h"
#include "GeneralName.h"
#include "components.h"

Include dependency graph for ASN1HelperLib.h:

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

Go to the source code of this file.

Functions

void FreeASN1Context (OOCTXT *ctx)
void CopyOID (ASN1OBJID *dest, ASN1OBJID *src)
ASN1OBJID * ConvertStringToASN1OBJID (const CPKIFStringPtr &str)
void CopyGeneralName (CACX509V3GeneralName &objName, CPKIFGeneralNamePtr &gn)
void CopyName (CACX509V3Name **dest, CACX509V3Name &name)
void CopyName (CACX509V3Name *dest, CACX509V3Name &name)


Function Documentation

ASN1OBJID* ConvertStringToASN1OBJID ( const CPKIFStringPtr str  ) 

void CopyGeneralName ( CACX509V3GeneralName &  objName,
CPKIFGeneralNamePtr &  gn 
)

Interface: External

This function is not used by applications. It is invoked internally to create a CPKIFGeneralNameList object from a CACX509V3GeneralNames structure.

Returns:
None
Exceptions:
CPKIFException(COMMON_INVALID_INPUT) 
Parameters:
objName  [in] A reference to a CACX509V3GeneralName object.
gn  [in] A smart pointer to CPKIFGeneralName object.

Definition at line 160 of file ASN1HelperLib.cpp.

References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, CopyName(), CPKIFGeneralName::DIRECTORYNAME, CPKIFGeneralName::DNSNAME, CPKIFGeneralName::EDIPARTYNAME, CPKIFGeneralName::IPADDRESS, CPKIFGeneralName::NOTSET, CPKIFGeneralName::OID, CPKIFGeneralName::OTHERNAME, CPKIFGeneralName::RFC822, TOOLKIT_APP, CPKIFGeneralName::URI, and CPKIFGeneralName::X400ADDRESS.

Referenced by CPKIFTSTInfo::Encode(), CPKIFTBSRequest::Encode(), CPKIFCVRequest::Encode(), EncodeGeneralName(), CPKIFSigningCertificateAttribute::GetValues(), PopulateACReference(), PopulateDListWithCACX509V3GeneralName(), PopulatePKCReference(), PopulateReplyObjects(), and PopulateValidationPolicy().

void CopyName ( CACX509V3Name *  dest,
CACX509V3Name &  name 
)

Interface: Subsystem

This is a helper function that duplocates CACX509V3Name objects

Returns:
None
Parameters:
dest  [out] A pointer to a pointer to CACX509V3Name object that will contain the new CACX509V3Name
name  [in] A referenece to CACX509V3Name object that will be copied

Definition at line 278 of file ASN1HelperLib.cpp.

void CopyName ( CACX509V3Name **  dest,
CACX509V3Name &  name 
)

Interface: Subsystem

This is a helper function that duplocates CACX509V3Name objects

Returns:
None
Parameters:
dest  [out] A pointer to a pointer to CACX509V3Name object that will contain the new CACX509V3Name
name  [in] A referenece to CACX509V3Name object that will be copied

Definition at line 229 of file ASN1HelperLib.cpp.

Referenced by CopyGeneralName(), GetSignerInfo(), and PopulateKARIDFromKeyMaterial().

void CopyOID ( ASN1OBJID *  dest,
ASN1OBJID *  src 
)

void FreeASN1Context ( OOCTXT *  ctx  ) 

Interface: Subsystem

This function frees memory used by OOCTXT structure. These structures are created and used internally. Applications need not invoke this function. The OOCTXT structure is defined as follows.

typedef struct _OOCTXT {   // ASN.1 context block

	ASN1BUFFER buffer; // data buffer 
	ASN1BUFSAVE savedInfo; // saved buffer info 
	ASN1ErrInfo errInfo; // run-time error info 
	ASN1MemBlk* memBlk_p; // memory block list 
	OSUINT32 initCode; // code double word to indicate init 
	OSUINT16 flags; // flag bits 
	DList fieldList; // PER field list 
	Asn1SizeCnst* pSizeConstraint; // Size constraint list 
	const char* pCharSet; // String of permitted characters 
	Asn1RTStack nameStack; // Element name stack 
	DList evtHndlrList; // Event handler object list 
	void* errHndlrCB; // Error handler callback function

} OOCTXT;

Returns:
None
Parameters:
ctx  [in] A pointer to an OOCTXT structure

Definition at line 77 of file ASN1HelperLib.cpp.

Referenced by CPKIFASNWrapper< T >::clear(), and CPKIFASNWrapper< T >::Decode().


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