soap-xmlsec.h

Go to the documentation of this file.
00001 /******************************************************************
00002  *  $Id: soap-xmlsec.h,v 1.9 2007/01/25 10:28:30 m0gg Exp $
00003  *
00004  * CSOAP Project:  A SOAP client/server library in C
00005  * Copyright (C) 2006 Heiko Ronsdorf
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public
00018  * License along with this library; if not, write to the
00019  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA  02111-1307, USA.
00021  * 
00022  * Email: hero@persua.de
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

Generated on Thu Jan 25 23:36:03 2007 for csoap by  doxygen 1.4.6