Git init
[external/xmlsec1.git] / include / xmlsec / openssl / 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_OPENSSL_SYMBOLS_H__
10 #define __XMLSEC_OPENSSL_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_OPENSSL
24
25 /**  
26  * Crypto Init/shutdown
27  */
28 #define xmlSecCryptoInit                        xmlSecOpenSSLInit
29 #define xmlSecCryptoShutdown                    xmlSecOpenSSLShutdown
30
31 #define xmlSecCryptoKeysMngrInit                xmlSecOpenSSLKeysMngrInit
32
33 /**
34  * Key data ids
35  */
36 #define xmlSecKeyDataAesId                      xmlSecOpenSSLKeyDataAesId
37 #define xmlSecKeyDataDesId                      xmlSecOpenSSLKeyDataDesId
38 #define xmlSecKeyDataDsaId                      xmlSecOpenSSLKeyDataDsaId
39 #define xmlSecKeyDataHmacId                     xmlSecOpenSSLKeyDataHmacId
40 #define xmlSecKeyDataRsaId                      xmlSecOpenSSLKeyDataRsaId
41 #define xmlSecKeyDataX509Id                     xmlSecOpenSSLKeyDataX509Id
42 #define xmlSecKeyDataRawX509CertId              xmlSecOpenSSLKeyDataRawX509CertId
43
44 /**
45  * Key data store ids
46  */
47 #define xmlSecX509StoreId                       xmlSecOpenSSLX509StoreId
48
49 /**
50  * Crypto transforms ids
51  */
52 #define xmlSecTransformAes128CbcId              xmlSecOpenSSLTransformAes128CbcId
53 #define xmlSecTransformAes192CbcId              xmlSecOpenSSLTransformAes192CbcId
54 #define xmlSecTransformAes256CbcId              xmlSecOpenSSLTransformAes256CbcId
55 #define xmlSecTransformKWAes128Id               xmlSecOpenSSLTransformKWAes128Id
56 #define xmlSecTransformKWAes192Id               xmlSecOpenSSLTransformKWAes192Id
57 #define xmlSecTransformKWAes256Id               xmlSecOpenSSLTransformKWAes256Id
58 #define xmlSecTransformDes3CbcId                xmlSecOpenSSLTransformDes3CbcId
59 #define xmlSecTransformKWDes3Id                 xmlSecOpenSSLTransformKWDes3Id
60 #define xmlSecTransformDsaSha1Id                xmlSecOpenSSLTransformDsaSha1Id
61 #define xmlSecTransformHmacMd5Id                xmlSecOpenSSLTransformHmacMd5Id
62 #define xmlSecTransformHmacRipemd160Id          xmlSecOpenSSLTransformHmacRipemd160Id
63 #define xmlSecTransformHmacSha1Id               xmlSecOpenSSLTransformHmacSha1Id
64 #define xmlSecTransformHmacSha224Id             xmlSecOpenSSLTransformHmacSha224Id
65 #define xmlSecTransformHmacSha256Id             xmlSecOpenSSLTransformHmacSha256Id
66 #define xmlSecTransformHmacSha384Id             xmlSecOpenSSLTransformHmacSha384Id
67 #define xmlSecTransformHmacSha512Id             xmlSecOpenSSLTransformHmacSha512Id
68 #define xmlSecTransformMd5Id                    xmlSecOpenSSLTransformMd5Id
69 #define xmlSecTransformRipemd160Id              xmlSecOpenSSLTransformRipemd160Id
70 #define xmlSecTransformRsaMd5Id                 xmlSecOpenSSLTransformRsaMd5Id
71 #define xmlSecTransformRsaRipemd160Id           xmlSecOpenSSLTransformRsaRipemd160Id
72 #define xmlSecTransformRsaSha1Id                xmlSecOpenSSLTransformRsaSha1Id
73 #define xmlSecTransformRsaSha224Id              xmlSecOpenSSLTransformRsaSha224Id
74 #define xmlSecTransformRsaSha256Id              xmlSecOpenSSLTransformRsaSha256Id
75 #define xmlSecTransformRsaSha384Id              xmlSecOpenSSLTransformRsaSha384Id
76 #define xmlSecTransformRsaSha512Id              xmlSecOpenSSLTransformRsaSha512Id
77 #define xmlSecTransformRsaPkcs1Id               xmlSecOpenSSLTransformRsaPkcs1Id
78 #define xmlSecTransformRsaOaepId                xmlSecOpenSSLTransformRsaOaepId
79 #define xmlSecTransformSha1Id                   xmlSecOpenSSLTransformSha1Id
80 #define xmlSecTransformSha224Id                 xmlSecOpenSSLTransformSha224Id
81 #define xmlSecTransformSha256Id                 xmlSecOpenSSLTransformSha256Id
82 #define xmlSecTransformSha384Id                 xmlSecOpenSSLTransformSha384Id
83 #define xmlSecTransformSha512Id                 xmlSecOpenSSLTransformSha512Id
84
85 /**
86  * High level routines form xmlsec command line utility
87  */ 
88 #define xmlSecCryptoAppInit                     xmlSecOpenSSLAppInit
89 #define xmlSecCryptoAppShutdown                 xmlSecOpenSSLAppShutdown
90 #define xmlSecCryptoAppDefaultKeysMngrInit      xmlSecOpenSSLAppDefaultKeysMngrInit
91 #define xmlSecCryptoAppDefaultKeysMngrAdoptKey  xmlSecOpenSSLAppDefaultKeysMngrAdoptKey
92 #define xmlSecCryptoAppDefaultKeysMngrLoad      xmlSecOpenSSLAppDefaultKeysMngrLoad
93 #define xmlSecCryptoAppDefaultKeysMngrSave      xmlSecOpenSSLAppDefaultKeysMngrSave
94 #define xmlSecCryptoAppKeysMngrCertLoad         xmlSecOpenSSLAppKeysMngrCertLoad
95 #define xmlSecCryptoAppKeysMngrCertLoadMemory   xmlSecOpenSSLAppKeysMngrCertLoadMemory
96 #define xmlSecCryptoAppKeyLoad                  xmlSecOpenSSLAppKeyLoad
97 #define xmlSecCryptoAppPkcs12Load               xmlSecOpenSSLAppPkcs12Load
98 #define xmlSecCryptoAppKeyCertLoad              xmlSecOpenSSLAppKeyCertLoad
99 #define xmlSecCryptoAppKeyLoadMemory            xmlSecOpenSSLAppKeyLoadMemory
100 #define xmlSecCryptoAppPkcs12LoadMemory         xmlSecOpenSSLAppPkcs12LoadMemory
101 #define xmlSecCryptoAppKeyCertLoadMemory        xmlSecOpenSSLAppKeyCertLoadMemory
102 #define xmlSecCryptoAppGetDefaultPwdCallback    xmlSecOpenSSLAppGetDefaultPwdCallback
103
104
105 /* todo: this should go away on next API refresh */
106 #define xmlSecCryptoAppKeysMngrAddCertsPath     xmlSecOpenSSLAppKeysMngrAddCertsPath
107
108 #endif /* XMLSEC_CRYPTO_OPENSSL */
109
110 #ifdef __cplusplus
111 }
112 #endif /* __cplusplus */
113
114 #endif /* __XMLSEC_OPENSSL_CRYPTO_H__ */
115
116 #define __XMLSEC_OPENSSL_CRYPTO_H__