00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __csoap_xmlsec_h
00025 #define __csoap_xmlsec_h
00026
00070 #define SOAP_SECURITY_NAMESPACE "http://schemas.xmlsoap.org/soap/security/2000-12"
00071 #define SOAP_SECURITY_PREFIX "SOAP-SEC"
00072
00078 #define CSOAP_ENABLE_XMLSEC "-CSOAPxmlsec"
00079
00086 #define CSOAP_XMLSEC_KEYFILE "-CSOAPkeyfile"
00087
00093 #define CSOAP_XMLSEC_PASSWORD "-CSOAPpassword"
00094
00100 #define CSOAP_XMLSEC_CERTFILE "-CSOAPcertfile"
00101
00108 #define XMLSEC_ERROR 5100
00109 #define XMLSEC_ERROR_GENERIC (XMLSEC_ERROR + 0)
00110 #define XMLSEC_ERROR_KEYSTORE (XMLSEC_ERROR + 10)
00111 #define XMLSEC_ERROR_KEYMANAGER (XMLSEC_ERROR + 20)
00112 #define XMLSEC_ERROR_KEY (XMLSEC_ERROR + 30)
00113 #define XMLSEC_ERROR_CERTIFICATE (XMLSEC_ERROR + 40)
00114 #define XMLSEC_ERROR_INIT (XMLSEC_ERROR + 50)
00115 #define XMLSEC_ERROR_VERSION (XMLSEC_ERROR + 60)
00116 #define XMLSEC_ERROR_DLLOAD (XMLSEC_ERROR + 70)
00117 #define XMLSEC_ERROR_SIGN (XMLSEC_ERROR + 80)
00118 #define XMLSEC_ERROR_SIGN_INIT (XMLSEC_ERROR + 90)
00119 #define XMLSEC_ERROR_ENCRYPT (XMLSEC_ERROR + 100)
00120 #define XMLSEC_ERROR_ENCRYPT_INIT (XMLSEC_ERROR + 110)
00121
00123 #ifdef __cplusplus
00124 extern "C" {
00125 #endif
00126
00137 extern herror_t soap_xmlsec_server_init_args(int argc, char **argv);
00138
00149 extern herror_t soap_xmlsec_client_init_args(int argc, char **argv);
00150
00190 extern herror_t soap_xmlsec_sign(struct SoapCtx *context);
00191
00216 extern herror_t soap_xmlsec_verify(struct SoapCtx *context);
00217
00227 extern herror_t soap_xmlsec_encrypt(struct SoapCtx *context);
00228
00238 extern herror_t soap_xmlsec_decrypt(struct SoapCtx *context);
00239
00245 extern void soap_xmlsec_destroy(void);
00246
00247 #ifdef __cplusplus
00248 }
00249 #endif
00250
00251 #endif