|
1 /** |
|
2 * XML Security Library (http://www.aleksey.com/xmlsec). |
|
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_X509_H__ |
|
11 #define __XMLSEC_X509_H__ |
|
12 #include "xmlsec_config.h" |
|
13 #ifndef XMLSEC_NO_X509 |
|
14 |
|
15 #ifdef __cplusplus |
|
16 extern "C" { |
|
17 #endif /* __cplusplus */ |
|
18 #include <stdio.h> |
|
19 |
|
20 #include <libxml2_tree.h> |
|
21 #include <libxml2_parser.h> |
|
22 |
|
23 #include "xmlsec_xmlsec.h" |
|
24 #include "xmlsec_buffer.h" |
|
25 #include "xmlsec_list.h" |
|
26 #include "xmlsec_keys.h" |
|
27 #include "xmlsec_keysmngr.h" |
|
28 #include "xmlsec_keyinfo.h" |
|
29 #include "xmlsec_transforms.h" |
|
30 |
|
31 /** |
|
32 * XMLSEC_X509DATA_CERTIFICATE_NODE: |
|
33 * |
|
34 * <dsig:X509Certificate/> node found or would be written back. |
|
35 */ |
|
36 #define XMLSEC_X509DATA_CERTIFICATE_NODE 0x00000001 |
|
37 /** |
|
38 * XMLSEC_X509DATA_SUBJECTNAME_NODE: |
|
39 * |
|
40 * <dsig:X509SubjectName/> node found or would be written back. |
|
41 */ |
|
42 #define XMLSEC_X509DATA_SUBJECTNAME_NODE 0x00000002 |
|
43 /** |
|
44 * XMLSEC_X509DATA_ISSUERSERIAL_NODE: |
|
45 * |
|
46 * <dsig:X509IssuerSerial/> node found or would be written back. |
|
47 */ |
|
48 #define XMLSEC_X509DATA_ISSUERSERIAL_NODE 0x00000004 |
|
49 /** |
|
50 * XMLSEC_X509DATA_SKI_NODE: |
|
51 * |
|
52 * <dsig:/X509SKI> node found or would be written back. |
|
53 */ |
|
54 #define XMLSEC_X509DATA_SKI_NODE 0x00000008 |
|
55 /** |
|
56 * XMLSEC_X509DATA_CRL_NODE: |
|
57 * |
|
58 * <dsig:X509CRL/> node found or would be written back. |
|
59 */ |
|
60 #define XMLSEC_X509DATA_CRL_NODE 0x00000010 |
|
61 /** |
|
62 * XMLSEC_X509DATA_DEFAULT: |
|
63 * |
|
64 * Default set of nodes to write in case of empty |
|
65 * <dsig:X509Data/> node template. |
|
66 */ |
|
67 #define XMLSEC_X509DATA_DEFAULT \ |
|
68 (XMLSEC_X509DATA_CERTIFICATE_NODE | XMLSEC_X509DATA_CRL_NODE) |
|
69 |
|
70 XMLSEC_EXPORT int xmlSecX509DataGetNodeContent (xmlNodePtr node, |
|
71 int deleteChildren, |
|
72 xmlSecKeyInfoCtxPtr keyInfoCtx); |
|
73 |
|
74 #ifdef __cplusplus |
|
75 } |
|
76 #endif /* __cplusplus */ |
|
77 |
|
78 #endif /* XMLSEC_NO_X509 */ |
|
79 |
|
80 #endif /* __XMLSEC_X509_H__ */ |
|
81 |