Git init
[external/xmlsec1.git] / include / xmlsec / gnutls / symbols.h
1 /** 
2  * XMLSec library
3  *
4  * This is free software; see Copyright file in the source
5  * distribution for preciese wording.
6  * 
7  * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com>
8  */
9 #ifndef __XMLSEC_GNUTLS_SYMBOLS_H__
10 #define __XMLSEC_GNUTLS_SYMBOLS_H__    
11
12 #if !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING)
13 #error To disable dynamic loading of xmlsec-crypto libraries undefine XMLSEC_CRYPTO_DYNAMIC_LOADING
14 #endif /* !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING) */
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* __cplusplus */ 
19
20 /**
21  * Defines for writing simple code
22  */
23 #ifdef XMLSEC_CRYPTO_GNUTLS
24
25 /**  
26  * Crypto Init/shutdown
27  */
28 #define xmlSecCryptoInit                        xmlSecGnuTLSInit
29 #define xmlSecCryptoShutdown                    xmlSecGnuTLSShutdown
30
31 #define xmlSecCryptoKeysMngrInit                xmlSecGnuTLSKeysMngrInit
32
33 /**
34  * Key data ids
35  */
36 #define xmlSecKeyDataAesId                      xmlSecGnuTLSKeyDataAesId
37 #define xmlSecKeyDataDesId                      xmlSecGnuTLSKeyDataDesId
38 #define xmlSecKeyDataDsaId                      xmlSecGnuTLSKeyDataDsaId
39 #define xmlSecKeyDataHmacId                     xmlSecGnuTLSKeyDataHmacId
40 #define xmlSecKeyDataRsaId                      xmlSecGnuTLSKeyDataRsaId
41 #define xmlSecKeyDataX509Id                     xmlSecGnuTLSKeyDataX509Id
42 #define xmlSecKeyDataRawX509CertId              xmlSecGnuTLSKeyDataRawX509CertId
43
44 /**
45  * Key data store ids
46  */
47 #define xmlSecX509StoreId                       xmlSecGnuTLSX509StoreId
48
49 /**
50  * Crypto transforms ids
51  */
52 #define xmlSecTransformAes128CbcId              xmlSecGnuTLSTransformAes128CbcId
53 #define xmlSecTransformAes192CbcId              xmlSecGnuTLSTransformAes192CbcId
54 #define xmlSecTransformAes256CbcId              xmlSecGnuTLSTransformAes256CbcId
55 #define xmlSecTransformKWAes128Id               xmlSecGnuTLSTransformKWAes128Id
56 #define xmlSecTransformKWAes192Id               xmlSecGnuTLSTransformKWAes192Id
57 #define xmlSecTransformKWAes256Id               xmlSecGnuTLSTransformKWAes256Id
58 #define xmlSecTransformDes3CbcId                xmlSecGnuTLSTransformDes3CbcId
59 #define xmlSecTransformKWDes3Id                 xmlSecGnuTLSTransformKWDes3Id
60 #define xmlSecTransformDsaSha1Id                xmlSecGnuTLSTransformDsaSha1Id
61 #define xmlSecTransformHmacMd5Id                xmlSecGnuTLSTransformHmacMd5Id
62 #define xmlSecTransformHmacRipemd160Id          xmlSecGnuTLSTransformHmacRipemd160Id
63 #define xmlSecTransformHmacSha1Id               xmlSecGnuTLSTransformHmacSha1Id
64 #define xmlSecTransformRipemd160Id              xmlSecGnuTLSTransformRipemd160Id
65 #define xmlSecTransformRsaSha1Id                xmlSecGnuTLSTransformRsaSha1Id
66 #define xmlSecTransformRsaPkcs1Id               xmlSecGnuTLSTransformRsaPkcs1Id
67 #define xmlSecTransformRsaOaepId                xmlSecGnuTLSTransformRsaOaepId
68 #define xmlSecTransformSha1Id                   xmlSecGnuTLSTransformSha1Id
69
70 /**
71  * High level routines form xmlsec command line utility
72  */ 
73 #define xmlSecCryptoAppInit                     xmlSecGnuTLSAppInit
74 #define xmlSecCryptoAppShutdown                 xmlSecGnuTLSAppShutdown
75 #define xmlSecCryptoAppDefaultKeysMngrInit      xmlSecGnuTLSAppDefaultKeysMngrInit
76 #define xmlSecCryptoAppDefaultKeysMngrAdoptKey  xmlSecGnuTLSAppDefaultKeysMngrAdoptKey
77 #define xmlSecCryptoAppDefaultKeysMngrLoad      xmlSecGnuTLSAppDefaultKeysMngrLoad
78 #define xmlSecCryptoAppDefaultKeysMngrSave      xmlSecGnuTLSAppDefaultKeysMngrSave
79 #define xmlSecCryptoAppKeysMngrCertLoad         xmlSecGnuTLSAppKeysMngrCertLoad
80 #define xmlSecCryptoAppKeysMngrCertLoadMemory   xmlSecGnuTLSAppKeysMngrCertLoadMemory
81 #define xmlSecCryptoAppKeyLoad                  xmlSecGnuTLSAppKeyLoad
82 #define xmlSecCryptoAppPkcs12Load               xmlSecGnuTLSAppPkcs12Load
83 #define xmlSecCryptoAppKeyCertLoad              xmlSecGnuTLSAppKeyCertLoad
84 #define xmlSecCryptoAppKeyLoadMemory            xmlSecGnuTLSAppKeyLoadMemory
85 #define xmlSecCryptoAppPkcs12LoadMemory         xmlSecGnuTLSAppPkcs12LoadMemory
86 #define xmlSecCryptoAppKeyCertLoadMemory        xmlSecGnuTLSAppKeyCertLoadMemory
87 #define xmlSecCryptoAppGetDefaultPwdCallback    xmlSecGnuTLSAppGetDefaultPwdCallback
88
89 #endif /* XMLSEC_CRYPTO_GNUTLS */
90
91 #ifdef __cplusplus
92 }
93 #endif /* __cplusplus */
94
95 #endif /* __XMLSEC_GNUTLS_CRYPTO_H__ */
96
97 #define __XMLSEC_GNUTLS_CRYPTO_H__