Back to index

nordugrid-arc-nox  1.1.0~rc6
XmlSecUtils.h
Go to the documentation of this file.
00001 #ifndef __ARC_WSSUTIL_H__
00002 #define __ARC_WSSUTIL_H__
00003 
00004 #include <vector>
00005 #include <string>
00006 
00007 #include <xmlsec/crypto.h>
00008 
00009 #include <arc/XMLNode.h>
00010 
00012 namespace Arc {
00014   int passphrase_callback(char* buf, int size, int rwflag, void *);
00017   bool init_xmlsec(void);
00019   bool final_xmlsec(void);
00021   std::string get_cert_str(const char* certfile);
00023   xmlSecKey* get_key_from_keystr(const std::string& value);
00025   xmlSecKey* get_key_from_keyfile(const char* keyfile);
00027   std::string get_key_from_certfile(const char* certfile);
00031   xmlSecKey* get_key_from_certstr(const std::string& value);
00033   xmlSecKeysMngrPtr load_key_from_keyfile(xmlSecKeysMngrPtr* keys_manager, const char* keyfile);
00035   xmlSecKeysMngrPtr load_key_from_certfile(xmlSecKeysMngrPtr* keys_manager, const char* certfile);
00037   xmlSecKeysMngrPtr load_key_from_certstr(xmlSecKeysMngrPtr* keys_manager, const std::string& certstr);
00039   xmlSecKeysMngrPtr load_trusted_cert_file(xmlSecKeysMngrPtr* keys_manager, const char* cert_file);
00041   xmlSecKeysMngrPtr load_trusted_cert_str(xmlSecKeysMngrPtr* keys_manager, const std::string& cert_str);
00043   xmlSecKeysMngrPtr load_trusted_certs(xmlSecKeysMngrPtr* keys_manager, const char* cafile, const char* capath);
00045   XMLNode get_node(XMLNode& parent,const char* name);
00046 }// namespace Arc
00047 
00048 #endif /* __ARC_WSSSUTIL_H__ */
00049