|
1 /** |
|
2 * XML Security Library (http://www.aleksey.com/xmlsec). |
|
3 * |
|
4 * |
|
5 * This is free software; see Copyright file in the source |
|
6 * distribution for preciese wording. |
|
7 * |
|
8 * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com> |
|
9 * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
10 */ |
|
11 #ifndef __XMLSEC_DL_H__ |
|
12 #define __XMLSEC_DL_H__ |
|
13 |
|
14 #ifdef __cplusplus |
|
15 extern "C" { |
|
16 #endif /* __cplusplus */ |
|
17 |
|
18 #include "xmlsec_config.h" |
|
19 |
|
20 typedef struct _xmlSecCryptoDLFunctions xmlSecCryptoDLFunctions, |
|
21 *xmlSecCryptoDLFunctionsPtr; |
|
22 |
|
23 XMLSEC_EXPORT int xmlSecCryptoDLFunctionsRegisterKeyDataAndTransforms |
|
24 (xmlSecCryptoDLFunctionsPtr functions); |
|
25 |
|
26 #ifndef XMLSEC_NO_CRYPTO_DYNAMIC_LOADING |
|
27 |
|
28 #include <libxml2_tree.h> |
|
29 #include <libxml2_xmlio.h> |
|
30 |
|
31 #include "xmlsec_xmlsec.h" |
|
32 #include "xmlsec_keysdata.h" |
|
33 #include "xmlsec_keys.h" |
|
34 #include "xmlsec_keysmngr.h" |
|
35 #include "xmlsec_transforms.h" |
|
36 |
|
37 /** |
|
38 * Dynamic load functions |
|
39 */ |
|
40 XMLSEC_EXPORT int xmlSecCryptoDLInit (void); |
|
41 XMLSEC_EXPORT int xmlSecCryptoDLShutdown (void); |
|
42 |
|
43 XMLSEC_EXPORT int xmlSecCryptoDLLoadLibrary (const xmlChar* crypto); |
|
44 XMLSEC_EXPORT xmlSecCryptoDLFunctionsPtr xmlSecCryptoDLGetLibraryFunctions(const xmlChar* crypto); |
|
45 XMLSEC_EXPORT int xmlSecCryptoDLUnloadLibrary (const xmlChar* crypto); |
|
46 |
|
47 XMLSEC_EXPORT int xmlSecCryptoDLSetFunctions (xmlSecCryptoDLFunctionsPtr functions); |
|
48 XMLSEC_EXPORT xmlSecCryptoDLFunctionsPtr xmlSecCryptoDLGetFunctions (void); |
|
49 |
|
50 #endif /* XMLSEC_NO_CRYPTO_DYNAMIC_LOADING */ |
|
51 |
|
52 #ifdef __cplusplus |
|
53 } |
|
54 #endif /* __cplusplus */ |
|
55 |
|
56 #endif /* __XMLSEC_APP_H__ */ |
|
57 |