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
00072 #define SOAP_SECURITY_NAMESPACE "http://schemas.xmlsoap.org/soap/security/2000-12"
00073 #define SOAP_SECURITY_PREFIX "SOAP-SEC"
00074
00077 #define CSOAP_ENABLE_XMLSEC "-CSOAPxmlsec"
00078
00082 #define CSOAP_XMLSEC_KEYFILE "-CSOAPkeyfile"
00083
00086 #define CSOAP_XMLSEC_PASSWORD "-CSOAPpassword"
00087
00090 #define CSOAP_XMLSEC_CERTFILE "-CSOAPcertfile"
00091
00099 #define XMLSEC_ERROR 5100
00100 #define XMLSEC_ERROR_GENERIC (XMLSEC_ERROR + 0)
00101 #define XMLSEC_ERROR_KEYSTORE (XMLSEC_ERROR + 10)
00102 #define XMLSEC_ERROR_KEYMANAGER (XMLSEC_ERROR + 20)
00103 #define XMLSEC_ERROR_KEY (XMLSEC_ERROR + 30)
00104 #define XMLSEC_ERROR_CERTIFICATE (XMLSEC_ERROR + 40)
00105 #define XMLSEC_ERROR_INIT (XMLSEC_ERROR + 50)
00106 #define XMLSEC_ERROR_VERSION (XMLSEC_ERROR + 60)
00107 #define XMLSEC_ERROR_DLLOAD (XMLSEC_ERROR + 70)
00108 #define XMLSEC_ERROR_SIGN (XMLSEC_ERROR + 80)
00109 #define XMLSEC_ERROR_SIGN_INIT (XMLSEC_ERROR + 90)
00110 #define XMLSEC_ERROR_ENCRYPT (XMLSEC_ERROR + 100)
00111 #define XMLSEC_ERROR_ENCRYPT_INIT (XMLSEC_ERROR + 110)
00112
00114 #ifdef __cplusplus
00115 extern "C" {
00116 #endif
00117
00128 extern herror_t soap_xmlsec_server_init_args(int argc, char **argv);
00129
00140 extern herror_t soap_xmlsec_client_init_args(int argc, char **argv);
00141
00180 extern herror_t soap_xmlsec_sign(struct SoapCtx *context);
00181
00204 extern herror_t soap_xmlsec_verify(struct SoapCtx *context);
00205
00213 extern herror_t soap_xmlsec_encrypt(struct SoapCtx *context);
00214
00222 extern herror_t soap_xmlsec_decrypt(struct SoapCtx *context);
00223
00229 extern void soap_xmlsec_destroy(void);
00230
00231 #ifdef __cplusplus
00232 }
00233 #endif
00234
00237 #endif