PKIFTSP.cpp

Go to the documentation of this file.
00001 
00009 #include "PKIFTSP.h"
00010 //#include "PKIFCRYPTO\PKIFCAPIRaw.h"
00011 //#include "PKIFX509Extensions2.h"
00012 #include "OID.h"
00013 #include "PKIFdll.h"
00014 #include "PKIFTSPDLL.h"
00015 
00016 //General structure of this class is as follows:
00017 //  Essentially, there are two states: encoding and decoded.
00018 //
00019 //ENCODING
00020 //  In this state, values are stored in the smart pointer member 
00021 //variables until encode is called.  When encode is called, a
00022 //TEMPORARY Objective structure is created and populated.  When 
00023 //possible, the structure is populated using pointers to existing
00024 //memory (the memory helper class is written to only free that 
00025 //which has been allocated - i.e. it must know which fields
00026 //are handed pointers and which are allocated).
00027 //
00028 //DECODED
00029 //  In this state, data is initially maintained in an Objective 
00030 //structure.  When a Get function is called, data for target field 
00031 //is copied to a smart pointer member and the state of the object 
00032 //remains DECODED.  If a Set function is called, all Gets are called
00033 //and the objective structure is destroyed and the state shifts
00034 //to ENCODING.  
00035 
00036 //from RFC3161:
00037 //id-ct-TSTInfo  OBJECT IDENTIFIER ::= { iso(1) member-body(2)
00038 //  us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) ct(1) 4}
00039 PKIFTSP_API CPKIFOIDPtr g_tstInfo
00040     (new CPKIFOID(CPKIFStringPtr(new std::string("1.2.840.113549.1.9.16.1.4"))));//id-ct-TSTInfo
00041 
00042 //The following OID will be in the forthcoming update to RFC3161 per Robert Zuccherato 3/3/2003
00043 //id-ct-TSReq            OBJECT IDENTIFIER ::= { id-ct 15 }
00044 PKIFTSP_API CPKIFOIDPtr g_tsReq
00045     (new CPKIFOID(CPKIFStringPtr(new std::string("1.2.840.113549.1.9.16.1.15"))));//id-ct-TSReq
00046 
00047 //*****************************************************************
00048 //  Time stamp request
00049 //*****************************************************************
00050 
00051 
00052 //*****************************************************************
00053 //  Time stamp response
00054 //*****************************************************************

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