00001 00009 //#include "PKIFCAPIRaw.h" 00010 00011 #include "PKIFOCSPInfo.h" 00012 #include "ToolkitUtils.h" 00013 #include "components.h" 00014 00015 //---------------------------------------------------------------------------------------------------- 00016 // 00017 // CPKIFOCSPInfo functions 00018 // 00019 //---------------------------------------------------------------------------------------------------- 00020 00022 struct CPKIFOCSPInfoImpl 00023 { 00024 CPKIFOCSPResponsePtr m_ocspResponse; 00025 CPKIFSingleResponsePtr m_singleResponse; 00026 }; 00028 00036 CPKIFOCSPInfo::CPKIFOCSPInfo() 00037 :m_impl (new CPKIFOCSPInfoImpl) 00038 { 00039 LOG_STRING_DEBUG("CPKIFOCSPInfo::CPKIFOCSPInfo()", TOOLKIT_OCSP_ASN, 0, this); 00040 } 00048 CPKIFOCSPInfo::~CPKIFOCSPInfo() 00049 { 00050 LOG_STRING_DEBUG("CPKIFOCSPInfo::~CPKIFOCSPInfo()", TOOLKIT_OCSP_ASN, 0, this); 00051 00052 delete m_impl; 00053 m_impl = NULL; 00054 } 00062 CPKIFSingleResponsePtr CPKIFOCSPInfo::GetSingleResponse() const 00063 { 00064 LOG_STRING_DEBUG("CPKIFOCSPInfo::GetSingleResponse()", TOOLKIT_OCSP_ASN, 0, this); 00065 return m_impl->m_singleResponse; 00066 } 00074 void CPKIFOCSPInfo::SetSingleResponse( 00076 CPKIFSingleResponsePtr& sr) 00077 { 00078 m_impl->m_singleResponse = sr; 00079 } 00087 CPKIFOCSPResponsePtr CPKIFOCSPInfo::GetOCSPResponse() const 00088 { 00089 return m_impl->m_ocspResponse; 00090 } 00098 void CPKIFOCSPInfo::SetOCSPResponse( 00100 CPKIFOCSPResponsePtr& resp) 00101 { 00102 m_impl->m_ocspResponse = resp; 00103 }