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_SKELETON_APP_H__
10 #define __XMLSEC_SKELETON_APP_H__
14 #endif /* __cplusplus */
16 #include <xmlsec/xmlsec.h>
17 #include <xmlsec/keys.h>
18 #include <xmlsec/keysmngr.h>
19 #include <xmlsec/transforms.h>
24 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppInit (const char* config);
25 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppShutdown (void);
30 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppDefaultKeysMngrInit (xmlSecKeysMngrPtr mngr);
31 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppDefaultKeysMngrAdoptKey(xmlSecKeysMngrPtr mngr,
33 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppDefaultKeysMngrLoad (xmlSecKeysMngrPtr mngr,
35 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppDefaultKeysMngrSave (xmlSecKeysMngrPtr mngr,
37 xmlSecKeyDataType type);
38 #ifndef XMLSEC_NO_X509
39 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppKeysMngrCertLoad (xmlSecKeysMngrPtr mngr,
41 xmlSecKeyDataFormat format,
42 xmlSecKeyDataType type);
43 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppKeysMngrCertLoadMemory (xmlSecKeysMngrPtr mngr,
44 const xmlSecByte *data,
46 xmlSecKeyDataFormat format,
47 xmlSecKeyDataType type);
48 #endif /* XMLSEC_NO_X509 */
54 XMLSEC_CRYPTO_EXPORT xmlSecKeyPtr xmlSecSkeletonAppKeyLoad (const char *filename,
55 xmlSecKeyDataFormat format,
58 void* pwdCallbackCtx);
59 XMLSEC_CRYPTO_EXPORT xmlSecKeyPtr xmlSecSkeletonAppKeyLoadMemory (const xmlSecByte *data,
61 xmlSecKeyDataFormat format,
64 void* pwdCallbackCtx);
65 #ifndef XMLSEC_NO_X509
66 XMLSEC_CRYPTO_EXPORT xmlSecKeyPtr xmlSecSkeletonAppPkcs12Load (const char *filename,
69 void* pwdCallbackCtx);
70 XMLSEC_CRYPTO_EXPORT xmlSecKeyPtr xmlSecSkeletonAppPkcs12LoadMemory (const xmlSecByte *data,
74 void* pwdCallbackCtx);
75 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppKeyCertLoad (xmlSecKeyPtr key,
77 xmlSecKeyDataFormat format);
78 XMLSEC_CRYPTO_EXPORT int xmlSecSkeletonAppKeyCertLoadMemory (xmlSecKeyPtr key,
79 const xmlSecByte *data,
81 xmlSecKeyDataFormat format);
82 #endif /* XMLSEC_NO_X509 */
84 XMLSEC_CRYPTO_EXPORT void* xmlSecSkeletonAppGetDefaultPwdCallback (void);
88 #endif /* __cplusplus */
90 #endif /* __XMLSEC_SKELETON_APP_H__ */