00001 00009 #if !defined(_FILEUTILS_H_) 00010 #define _FILEUTILS_H_ 00011 00012 #include "PKIFdll.h" 00013 #include "PKIFException.h" 00014 00015 FD_SMART_PTR(CPKIFCertificate); 00016 FD_SMART_PTR(CPKIFBuffer); 00017 00018 CPKIFCertificatePtr CAC_API DecodeCertFromFile(const std::string & filename) throw(CPKIFException); 00019 void CAC_API WriteBufferToFile(const std::string & filename, CPKIFBufferPtr& buf); 00020 CPKIFBufferPtr CAC_API ReadFileIntoBuffer(const std::string & filename) throw(CPKIFException); 00021 #endif // !defined(_FILEUTILS_H_) 00022