4 * This is free software; see Copyright file in the source
5 * distribution for preciese wording.
7 * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com>
9 #ifndef __XMLSEC_GNUTLS_SYMBOLS_H__
10 #define __XMLSEC_GNUTLS_SYMBOLS_H__
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) */
18 #endif /* __cplusplus */
21 * Defines for writing simple code
23 #ifdef XMLSEC_CRYPTO_GNUTLS
26 * Crypto Init/shutdown
28 #define xmlSecCryptoInit xmlSecGnuTLSInit
29 #define xmlSecCryptoShutdown xmlSecGnuTLSShutdown
31 #define xmlSecCryptoKeysMngrInit xmlSecGnuTLSKeysMngrInit
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
47 #define xmlSecX509StoreId xmlSecGnuTLSX509StoreId
50 * Crypto transforms ids
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
71 * High level routines form xmlsec command line utility
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
89 #endif /* XMLSEC_CRYPTO_GNUTLS */
93 #endif /* __cplusplus */
95 #endif /* __XMLSEC_GNUTLS_CRYPTO_H__ */
97 #define __XMLSEC_GNUTLS_CRYPTO_H__