00001 00010 #include "IPKIFHasExtensions.h" 00011 #include "IPKIFParseExtensions.h" 00012 #include "X509Extension.h" 00013 #include "Buffer.h" 00014 00015 using namespace std; 00016 //#include "PKIFX509Extensions2.h" 00017 00025 IPKIFHasExtensions::~IPKIFHasExtensions () 00026 { 00027 } 00028 00038 void IPKIFHasExtensions::GetExtensions( 00040 IPKIFParseExtensions* m, 00042 vector<CPKIFX509ExtensionPtr>& exts) 00043 { 00044 CPKIFBufferPtr buf; 00045 GetEncodedExtensions (buf); 00046 00047 if (!buf || 0 == buf->GetLength ()) 00048 return; 00049 00050 m->ParseExtensions (buf, exts); 00051 } 00052