|
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 * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
9 */ |
|
10 #ifndef __XMLSEC_SYMBIANCRYPTO_EVP_H__ |
|
11 #define __XMLSEC_SYMBIANCRYPTO_EVP_H__ |
|
12 |
|
13 #ifdef __cplusplus |
|
14 extern "C" { |
|
15 #endif /* __cplusplus */ |
|
16 #include "xmlsecc_config.h" |
|
17 #include "xmlsec_xmlsec.h" |
|
18 #include "xmlsec_keys.h" |
|
19 #include "xmlsec_transforms.h" |
|
20 #include "xmlsec_keysmngr.h" |
|
21 |
|
22 // replace <openssl/evp.h> |
|
23 #include "xmlsecc_evpwrapper.h" |
|
24 |
|
25 XMLSEC_CRYPTO_EXPORT int xmlSecSymbianCryptoEvpKeyDataAdoptEvp (xmlSecKeyDataPtr data, |
|
26 EVP_PKEY* pKey); |
|
27 XMLSEC_CRYPTO_EXPORT EVP_PKEY* xmlSecSymbianCryptoEvpKeyDataGetEvp (xmlSecKeyDataPtr data); |
|
28 |
|
29 /****************************************************************************** |
|
30 * |
|
31 * EVP helper functions |
|
32 * |
|
33 *****************************************************************************/ |
|
34 XMLSEC_CRYPTO_EXPORT EVP_PKEY* xmlSecSymbianCryptoEvpKeyDup (EVP_PKEY* pKey); |
|
35 XMLSEC_CRYPTO_EXPORT xmlSecKeyDataPtr xmlSecSymbianCryptoEvpKeyAdopt (EVP_PKEY *pKey); |
|
36 |
|
37 /**************************************************************************** |
|
38 * |
|
39 * Symbian Keys Store |
|
40 * |
|
41 ***************************************************************************/ |
|
42 /** |
|
43 * xmlSecSymbianKeysStoreId: |
|
44 * |
|
45 * A symbian keys store klass id. |
|
46 */ |
|
47 #define xmlSecSymbianKeysStoreId xmlSecSymbianKeysStoreGetKlass() |
|
48 |
|
49 XMLSEC_CRYPTO_EXPORT xmlSecKeyStoreId xmlSecSymbianKeysStoreGetKlass (void); |
|
50 |
|
51 XMLSEC_CRYPTO_EXPORT xmlSecKeyPtr xmlSecSymbianCryptoAppKeyLoadSks(char* keyname); |
|
52 |
|
53 |
|
54 #ifdef __cplusplus |
|
55 } |
|
56 #endif /* __cplusplus */ |
|
57 |
|
58 #endif /* __XMLSEC_SYMBIANCRYPTO_EVP_H__ */ |
|
59 |
|
60 |