Git init
[external/xmlsec1.git] / src / strings.c
1 /** 
2  * XML Security Library (http://www.aleksey.com/xmlsec).
3  *
4  * All the string constants.
5  *
6  * This is free software; see Copyright file in the source
7  * distribution for preciese wording.
8  * 
9  * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com>
10  */
11 #include "globals.h"
12
13 #include <libxml/tree.h>
14
15 #include <xmlsec/xmlsec.h>
16
17 /*************************************************************************
18  *
19  * Global Namespaces
20  *
21  ************************************************************************/
22 const xmlChar xmlSecNs[]                        = "http://www.aleksey.com/xmlsec/2002";
23 const xmlChar xmlSecDSigNs[]                    = "http://www.w3.org/2000/09/xmldsig#";
24 const xmlChar xmlSecEncNs[]                     = "http://www.w3.org/2001/04/xmlenc#";
25 const xmlChar xmlSecXkmsNs[]                    = "http://www.w3.org/2002/03/xkms#";
26 const xmlChar xmlSecXPathNs[]                   = "http://www.w3.org/TR/1999/REC-xpath-19991116";
27 const xmlChar xmlSecXPath2Ns[]                  = "http://www.w3.org/2002/06/xmldsig-filter2";
28 const xmlChar xmlSecXPointerNs[]                = "http://www.w3.org/2001/04/xmldsig-more/xptr";
29 const xmlChar xmlSecSoap11Ns[]                  = "http://schemas.xmlsoap.org/soap/envelope/";
30 const xmlChar xmlSecSoap12Ns[]                  = "http://www.w3.org/2002/06/soap-envelope";
31
32 /*************************************************************************
33  *
34  * DSig Nodes
35  *
36  ************************************************************************/
37 const xmlChar xmlSecNodeSignature[]             = "Signature";
38 const xmlChar xmlSecNodeSignedInfo[]            = "SignedInfo";
39 const xmlChar xmlSecNodeCanonicalizationMethod[]= "CanonicalizationMethod";
40 const xmlChar xmlSecNodeSignatureMethod[]       = "SignatureMethod";
41 const xmlChar xmlSecNodeSignatureValue[]        = "SignatureValue";
42 const xmlChar xmlSecNodeDigestMethod[]          = "DigestMethod";
43 const xmlChar xmlSecNodeDigestValue[]           = "DigestValue";
44 const xmlChar xmlSecNodeObject[]                = "Object";
45 const xmlChar xmlSecNodeManifest[]              = "Manifest";
46 const xmlChar xmlSecNodeSignatureProperties[]   = "SignatureProperties";
47
48 /*************************************************************************
49  *
50  * Encryption Nodes
51  *
52  ************************************************************************/
53 const xmlChar xmlSecNodeEncryptedData[]         = "EncryptedData";
54 const xmlChar xmlSecNodeEncryptionMethod[]      = "EncryptionMethod";
55 const xmlChar xmlSecNodeEncryptionProperties[]  = "EncryptionProperties";
56 const xmlChar xmlSecNodeEncryptionProperty[]    = "EncryptionProperty";
57 const xmlChar xmlSecNodeCipherData[]            = "CipherData";
58 const xmlChar xmlSecNodeCipherValue[]           = "CipherValue";
59 const xmlChar xmlSecNodeCipherReference[]       = "CipherReference";
60 const xmlChar xmlSecNodeReferenceList[]         = "ReferenceList";
61 const xmlChar xmlSecNodeDataReference[]         = "DataReference";
62 const xmlChar xmlSecNodeKeyReference[]          = "KeyReference";
63
64 const xmlChar xmlSecNodeCarriedKeyName[]        = "CarriedKeyName";
65
66 const xmlChar xmlSecTypeEncContent[]            = "http://www.w3.org/2001/04/xmlenc#Content";
67 const xmlChar xmlSecTypeEncElement[]            = "http://www.w3.org/2001/04/xmlenc#Element";
68
69 /*************************************************************************
70  *
71  * XKMS Nodes
72  *
73  ************************************************************************/
74 #ifndef XMLSEC_NO_XKMS
75 const xmlChar xmlSecXkmsServerRequestResultName[]       = "result-response";
76 const xmlChar xmlSecXkmsServerRequestStatusName[]       = "status-request";
77 const xmlChar xmlSecXkmsServerRequestLocateName[]       = "locate-request";
78 const xmlChar xmlSecXkmsServerRequestValidateName[]     = "validate-request";
79 const xmlChar xmlSecXkmsServerRequestCompoundName[]     = "compound-request";
80
81 const xmlChar xmlSecNodeResult[]                = "Result";
82 const xmlChar xmlSecNodeStatusRequest[]         = "StatusRequest";
83 const xmlChar xmlSecNodeStatusResult[]          = "StatusResult";
84 const xmlChar xmlSecNodeLocateRequest[]         = "LocateRequest";
85 const xmlChar xmlSecNodeLocateResult[]          = "LocateResult";
86 const xmlChar xmlSecNodeValidateRequest[]       = "ValidateRequest";
87 const xmlChar xmlSecNodeValidateResult[]        = "ValidateResult";
88 const xmlChar xmlSecNodeCompoundRequest[]       = "CompoundRequest";
89 const xmlChar xmlSecNodeCompoundResult[]        = "CompoundResult";
90
91 const xmlChar xmlSecNodeMessageExtension[]      = "MessageExtension";
92 const xmlChar xmlSecNodeOpaqueClientData[]      = "OpaqueClientData";
93 const xmlChar xmlSecNodeResponseMechanism[]     = "ResponseMechanism";
94 const xmlChar xmlSecNodeRespondWith[]           = "RespondWith";
95 const xmlChar xmlSecNodePendingNotification[]   = "PendingNotification";
96 const xmlChar xmlSecNodeQueryKeyBinding[]       = "QueryKeyBinding";
97 const xmlChar xmlSecNodeKeyUsage[]              = "KeyUsage";
98 const xmlChar xmlSecNodeUseKeyWith[]            = "UseKeyWith";
99 const xmlChar xmlSecNodeTimeInstant[]           = "TimeInstant";
100 const xmlChar xmlSecNodeRequestSignatureValue[] = "RequestSignatureValue";
101 const xmlChar xmlSecNodeUnverifiedKeyBinding[]  = "UnverifiedKeyBinding";
102 const xmlChar xmlSecNodeValidityInterval[]      = "ValidityInterval";
103 const xmlChar xmlSecNodeStatus[]                = "Status";
104 const xmlChar xmlSecNodeValidReason[]           = "ValidReason";
105 const xmlChar xmlSecNodeInvalidReason[]         = "InvalidReason";
106 const xmlChar xmlSecNodeIndeterminateReason[]   = "IndeterminateReason";
107
108 const xmlChar xmlSecAttrService[]               = "Service";
109 const xmlChar xmlSecAttrNonce[]                 = "Nonce";
110 const xmlChar xmlSecAttrOriginalRequestId[]     = "OriginalRequestId";
111 const xmlChar xmlSecAttrResponseLimit[]         = "ResponseLimit";
112 const xmlChar xmlSecAttrMechanism[]             = "Mechanism[";
113 const xmlChar xmlSecAttrIdentifier[]            = "Identifier";
114 const xmlChar xmlSecAttrApplication[]           = "Application";
115 const xmlChar xmlSecAttrResultMajor[]           = "ResultMajor";
116 const xmlChar xmlSecAttrResultMinor[]           = "ResultMinor";
117 const xmlChar xmlSecAttrRequestId[]             = "RequestId";
118 const xmlChar xmlSecAttrNotBefore[]             = "NotBefore";
119 const xmlChar xmlSecAttrNotOnOrAfter[]          = "NotOnOrAfter";
120 const xmlChar xmlSecAttrTime[]                  = "Time";
121 const xmlChar xmlSecAttrStatusValue[]           = "StatusValue";
122
123 const xmlChar xmlSecResponseMechanismPending[]  = "Pending";
124 const xmlChar xmlSecResponseMechanismRepresent[]= "Represent";
125 const xmlChar xmlSecResponseMechanismRequestSignatureValue[] = "RequestSignatureValue";
126
127 const xmlChar xmlSecRespondWithKeyName[]        = "KeyName";
128 const xmlChar xmlSecRespondWithKeyValue[]       = "KeyValue";
129 const xmlChar xmlSecRespondWithX509Cert[]       = "X509Cert";
130 const xmlChar xmlSecRespondWithX509Chain[]      = "X509Chain";
131 const xmlChar xmlSecRespondWithX509CRL[]        = "X509CRL";
132 const xmlChar xmlSecRespondWithOCSP[]           = "OCSP";
133 const xmlChar xmlSecRespondWithRetrievalMethod[]= "RetrievalMethod";
134 const xmlChar xmlSecRespondWithPGP[]            = "PGP";
135 const xmlChar xmlSecRespondWithPGPWeb[]         = "PGPWeb";
136 const xmlChar xmlSecRespondWithSPKI[]           = "SPKI";
137 const xmlChar xmlSecRespondWithPrivateKey[]     = "PrivateKey";
138
139 const xmlChar xmlSecStatusResultSuccess[]       = "Success";
140 const xmlChar xmlSecStatusResultFailed[]        = "Failed";
141 const xmlChar xmlSecStatusResultPending[]       = "Pending";
142
143 const xmlChar xmlSecKeyUsageEncryption[]        = "Encryption";
144 const xmlChar xmlSecKeyUsageSignature[]         = "Signature";
145 const xmlChar xmlSecKeyUsageExchange[]          = "Exchange";
146
147 const xmlChar xmlSecKeyBindingStatusValid[]             = "Valid";
148 const xmlChar xmlSecKeyBindingStatusInvalid[]           = "Invalid";
149 const xmlChar xmlSecKeyBindingStatusIndeterminate[]     = "Indeterminate";
150
151 const xmlChar xmlSecKeyBindingReasonIssuerTrust[]       = "IssuerTrust";
152 const xmlChar xmlSecKeyBindingReasonRevocationStatus[]  = "RevocationStatus";
153 const xmlChar xmlSecKeyBindingReasonValidityInterval[]  = "ValidityInterval";
154 const xmlChar xmlSecKeyBindingReasonSignature[]         = "Signature";
155
156 const xmlChar xmlSecResultMajorCodeSuccess[]            = "Success";
157 const xmlChar xmlSecResultMajorCodeVersionMismatch[]    = "VersionMismatch";
158 const xmlChar xmlSecResultMajorCodeSender[]             = "Sender";
159 const xmlChar xmlSecResultMajorCodeReceiver[]           = "Receiver";
160 const xmlChar xmlSecResultMajorCodeRepresent[]          = "Represent";
161 const xmlChar xmlSecResultMajorCodePending[]            = "Pending";
162
163 const xmlChar xmlSecResultMinorCodeNoMatch[]            = "NoMatch";
164 const xmlChar xmlSecResultMinorCodeTooManyResponses[]   = "TooManyResponses";
165 const xmlChar xmlSecResultMinorCodeIncomplete[]         = "Incomplete";
166 const xmlChar xmlSecResultMinorCodeFailure[]            = "Failure";
167 const xmlChar xmlSecResultMinorCodeRefused[]            = "Refused";
168 const xmlChar xmlSecResultMinorCodeNoAuthentication[]   = "NoAuthentication";
169 const xmlChar xmlSecResultMinorCodeMessageNotSupported[]= "MessageNotSupported";
170 const xmlChar xmlSecResultMinorCodeUnknownResponseId[]  = "UnknownResponseId";
171 const xmlChar xmlSecResultMinorCodeNotSynchronous[]     = "NotSynchronous";
172
173 const xmlChar xmlSecXkmsSoapSubcodeValueMessageNotSupported[] = "MessageNotSupported";
174 const xmlChar xmlSecXkmsSoapSubcodeValueBadMessage[]    = "BadMessage";
175
176 const xmlChar xmlSecXkmsSoapFaultReasonLang[]               = "en";
177 const xmlChar xmlSecXkmsSoapFaultReasonUnsupportedVersion[] = "Unsupported SOAP version";
178 const xmlChar xmlSecXkmsSoapFaultReasonUnableToProcess[]    = "Unable to process %s";
179 const xmlChar xmlSecXkmsSoapFaultReasonServiceUnavailable[] = "Service temporarily unable";
180 const xmlChar xmlSecXkmsSoapFaultReasonMessageNotSupported[]= "%s message not supported";
181 const xmlChar xmlSecXkmsSoapFaultReasonMessageInvalid[]     = "%s message invalid";
182
183 const xmlChar xmlSecXkmsFormatStrPlain[]                = "plain";
184 const xmlChar xmlSecXkmsFormatStrSoap11[]               = "soap-1.1";
185 const xmlChar xmlSecXkmsFormatStrSoap12[]               = "soap-1.2";
186
187 #endif /* XMLSEC_NO_XKMS */
188
189 /*************************************************************************
190  *
191  * KeyInfo Nodes
192  *
193  ************************************************************************/
194 const xmlChar xmlSecNodeKeyInfo[]               = "KeyInfo";
195 const xmlChar xmlSecNodeReference[]             = "Reference";
196 const xmlChar xmlSecNodeTransforms[]            = "Transforms";
197 const xmlChar xmlSecNodeTransform[]             = "Transform";
198
199 /*************************************************************************
200  *
201  * Attributes
202  *
203  ************************************************************************/
204 const xmlChar xmlSecAttrId[]                    = "Id";
205 const xmlChar xmlSecAttrURI[]                   = "URI";
206 const xmlChar xmlSecAttrType[]                  = "Type";
207 const xmlChar xmlSecAttrMimeType[]              = "MimeType";
208 const xmlChar xmlSecAttrEncoding[]              = "Encoding";
209 const xmlChar xmlSecAttrAlgorithm[]             = "Algorithm";
210 const xmlChar xmlSecAttrFilter[]                = "Filter";
211 const xmlChar xmlSecAttrRecipient[]             = "Recipient";
212 const xmlChar xmlSecAttrTarget[]                = "Target";
213
214 /*************************************************************************
215  *
216  * AES strings
217  *
218  ************************************************************************/
219 const xmlChar xmlSecNameAESKeyValue[]           = "aes";
220 const xmlChar xmlSecNodeAESKeyValue[]           = "AESKeyValue";
221 const xmlChar xmlSecHrefAESKeyValue[]           = "http://www.aleksey.com/xmlsec/2002#AESKeyValue";
222
223 const xmlChar xmlSecNameAes128Cbc[]             = "aes128-cbc";
224 const xmlChar xmlSecHrefAes128Cbc[]             = "http://www.w3.org/2001/04/xmlenc#aes128-cbc";
225
226 const xmlChar xmlSecNameAes192Cbc[]             = "aes192-cbc";
227 const xmlChar xmlSecHrefAes192Cbc[]             = "http://www.w3.org/2001/04/xmlenc#aes192-cbc";
228
229 const xmlChar xmlSecNameAes256Cbc[]             = "aes256-cbc";
230 const xmlChar xmlSecHrefAes256Cbc[]             = "http://www.w3.org/2001/04/xmlenc#aes256-cbc";
231
232 const xmlChar xmlSecNameKWAes128[]              = "kw-aes128";
233 const xmlChar xmlSecHrefKWAes128[]              = "http://www.w3.org/2001/04/xmlenc#kw-aes128";
234
235 const xmlChar xmlSecNameKWAes192[]              = "kw-aes192";
236 const xmlChar xmlSecHrefKWAes192[]              = "http://www.w3.org/2001/04/xmlenc#kw-aes192";
237
238 const xmlChar xmlSecNameKWAes256[]              = "kw-aes256";
239 const xmlChar xmlSecHrefKWAes256[]              = "http://www.w3.org/2001/04/xmlenc#kw-aes256";
240
241 /*************************************************************************
242  *
243  * BASE64 strings
244  *
245  ************************************************************************/
246 const xmlChar xmlSecNameBase64[]                = "base64";
247 const xmlChar xmlSecHrefBase64[]                = "http://www.w3.org/2000/09/xmldsig#base64";
248
249 /*************************************************************************
250  *
251  * C14N strings
252  *
253  ************************************************************************/
254 const xmlChar xmlSecNameC14N[]                  = "c14n";
255 const xmlChar xmlSecHrefC14N[]                  = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
256
257 const xmlChar xmlSecNameC14NWithComments[]      = "c14n-with-comments";
258 const xmlChar xmlSecHrefC14NWithComments[]      = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments";
259
260 const xmlChar xmlSecNameC14N11[]                = "c14n11";
261 const xmlChar xmlSecHrefC14N11[]                = "http://www.w3.org/2006/12/xml-c14n11";
262
263 const xmlChar xmlSecNameC14N11WithComments[]    = "c14n11-with-comments";
264 const xmlChar xmlSecHrefC14N11WithComments[]    = "http://www.w3.org/2006/12/xml-c14n11#WithComments";
265
266 const xmlChar xmlSecNameExcC14N[]               = "exc-c14n";
267 const xmlChar xmlSecHrefExcC14N[]               = "http://www.w3.org/2001/10/xml-exc-c14n#";
268
269 const xmlChar xmlSecNameExcC14NWithComments[]   = "exc-c14n-with-comments";
270 const xmlChar xmlSecHrefExcC14NWithComments[]   = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
271
272 const xmlChar xmlSecNsExcC14N[]                 = "http://www.w3.org/2001/10/xml-exc-c14n#";
273 const xmlChar xmlSecNsExcC14NWithComments[]     = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
274
275 const xmlChar xmlSecNodeInclusiveNamespaces[]   = "InclusiveNamespaces";
276 const xmlChar xmlSecAttrPrefixList[]            = "PrefixList";
277
278 /*************************************************************************
279  *
280  * DES strings
281  *
282  ************************************************************************/
283 const xmlChar xmlSecNameDESKeyValue[]           = "des";
284 const xmlChar xmlSecNodeDESKeyValue[]           = "DESKeyValue";
285 const xmlChar xmlSecHrefDESKeyValue[]           = "http://www.aleksey.com/xmlsec/2002#DESKeyValue";
286
287 const xmlChar xmlSecNameDes3Cbc[]               = "tripledes-cbc";
288 const xmlChar xmlSecHrefDes3Cbc[]               = "http://www.w3.org/2001/04/xmlenc#tripledes-cbc";
289
290 const xmlChar xmlSecNameKWDes3[]                = "kw-tripledes";
291 const xmlChar xmlSecHrefKWDes3[]                = "http://www.w3.org/2001/04/xmlenc#kw-tripledes";
292
293 /*************************************************************************
294  *
295  * GOST2001 strings
296  *
297  ************************************************************************/
298 const xmlChar xmlSecNameGOST2001KeyValue[]              = "gost2001";
299 const xmlChar xmlSecNodeGOST2001KeyValue[]              = "gostr34102001-gostr3411";
300 const xmlChar xmlSecHrefGOST2001KeyValue[]              = "http://www.w3.org/2001/04/xmldsig-more#gostr34102001-gostr3411";
301
302 const xmlChar xmlSecNameGost2001GostR3411_94[]          = "gostr34102001-gostr3411";
303 const xmlChar xmlSecHrefGost2001GostR3411_94[]          = "http://www.w3.org/2001/04/xmldsig-more#gostr34102001-gostr3411";
304
305 /*************************************************************************
306  *
307  * DSA strings
308  *
309  ************************************************************************/
310 const xmlChar xmlSecNameDSAKeyValue[]           = "dsa";
311 const xmlChar xmlSecNodeDSAKeyValue[]           = "DSAKeyValue";
312 const xmlChar xmlSecHrefDSAKeyValue[]           = "http://www.w3.org/2000/09/xmldsig#DSAKeyValue";
313 const xmlChar xmlSecNodeDSAP[]                  = "P";
314 const xmlChar xmlSecNodeDSAQ[]                  = "Q";
315 const xmlChar xmlSecNodeDSAG[]                  = "G";
316 const xmlChar xmlSecNodeDSAJ[]                  = "J";
317 const xmlChar xmlSecNodeDSAX[]                  = "X";
318 const xmlChar xmlSecNodeDSAY[]                  = "Y";
319 const xmlChar xmlSecNodeDSASeed[]               = "Seed";
320 const xmlChar xmlSecNodeDSAPgenCounter[]        = "PgenCounter";
321
322 const xmlChar xmlSecNameDsaSha1[]               = "dsa-sha1";
323 const xmlChar xmlSecHrefDsaSha1[]               = "http://www.w3.org/2000/09/xmldsig#dsa-sha1";
324
325 /*************************************************************************
326  *
327  * EncryptedKey
328  *
329  ************************************************************************/
330 const xmlChar xmlSecNameEncryptedKey[]          = "enc-key";
331 const xmlChar xmlSecNodeEncryptedKey[]          = "EncryptedKey";
332 const xmlChar xmlSecHrefEncryptedKey[]          = "http://www.w3.org/2001/04/xmlenc#EncryptedKey";
333
334 /*************************************************************************
335  *
336  * Enveloped transform strings
337  *
338  ************************************************************************/
339 const xmlChar xmlSecNameEnveloped[]             = "enveloped-signature";
340 const xmlChar xmlSecHrefEnveloped[]             = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
341
342 /*************************************************************************
343  *
344  * HMAC strings
345  *
346  ************************************************************************/
347 const xmlChar xmlSecNameHMACKeyValue[]          = "hmac";
348 const xmlChar xmlSecNodeHMACKeyValue[]          = "HMACKeyValue";
349 const xmlChar xmlSecHrefHMACKeyValue[]          = "http://www.aleksey.com/xmlsec/2002#HMACKeyValue";
350
351 const xmlChar xmlSecNodeHMACOutputLength[]      = "HMACOutputLength";
352
353 const xmlChar xmlSecNameHmacMd5[]               = "hmac-md5";
354 const xmlChar xmlSecHrefHmacMd5[]               = "http://www.w3.org/2001/04/xmldsig-more#hmac-md5";
355
356 const xmlChar xmlSecNameHmacRipemd160[]         = "hmac-ripemd160";
357 const xmlChar xmlSecHrefHmacRipemd160[]         = "http://www.w3.org/2001/04/xmldsig-more#hmac-ripemd160";
358
359 const xmlChar xmlSecNameHmacSha1[]              = "hmac-sha1";
360 const xmlChar xmlSecHrefHmacSha1[]              = "http://www.w3.org/2000/09/xmldsig#hmac-sha1";
361
362 const xmlChar xmlSecNameHmacSha224[]            = "hmac-sha224";
363 const xmlChar xmlSecHrefHmacSha224[]            = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha224";
364
365 const xmlChar xmlSecNameHmacSha256[]            = "hmac-sha256";
366 const xmlChar xmlSecHrefHmacSha256[]            = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha256";
367
368 const xmlChar xmlSecNameHmacSha384[]            = "hmac-sha384";
369 const xmlChar xmlSecHrefHmacSha384[]            = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha384";
370
371 const xmlChar xmlSecNameHmacSha512[]            = "hmac-sha512";
372 const xmlChar xmlSecHrefHmacSha512[]            = "http://www.w3.org/2001/04/xmldsig-more#hmac-sha512";
373
374 /*************************************************************************
375  *
376  * KeyName strings
377  *
378  ************************************************************************/
379 const xmlChar xmlSecNameKeyName[]               = "key-name";
380 const xmlChar xmlSecNodeKeyName[]               = "KeyName";
381
382 /*************************************************************************
383  *
384  * KeyValue strings
385  *
386  ************************************************************************/
387 const xmlChar xmlSecNameKeyValue[]              = "key-value";
388 const xmlChar xmlSecNodeKeyValue[]              = "KeyValue";
389
390 /*************************************************************************
391  *
392  * Memory Buffer strings
393  *
394  ************************************************************************/
395 const xmlChar xmlSecNameMemBuf[]                = "membuf-transform";
396
397 /*************************************************************************
398  *
399  * MD5 strings
400  *
401  ************************************************************************/
402 const xmlChar xmlSecNameMd5[]                   = "md5";
403 const xmlChar xmlSecHrefMd5[]                   = "http://www.w3.org/2001/04/xmldsig-more#md5";
404
405 /*************************************************************************
406  *
407  * RetrievalMethod
408  *
409  ************************************************************************/
410 const xmlChar xmlSecNameRetrievalMethod[]       = "retrieval-method";
411 const xmlChar xmlSecNodeRetrievalMethod[]       = "RetrievalMethod";
412
413 /*************************************************************************
414  *
415  * RIPEMD160 strings
416  *
417  ************************************************************************/
418 const xmlChar xmlSecNameRipemd160[]             = "ripemd160";
419 const xmlChar xmlSecHrefRipemd160[]             = "http://www.w3.org/2001/04/xmlenc#ripemd160";
420
421 /*************************************************************************
422  *
423  * RSA strings
424  *
425  ************************************************************************/
426 const xmlChar xmlSecNameRSAKeyValue[]           = "rsa";
427 const xmlChar xmlSecNodeRSAKeyValue[]           = "RSAKeyValue";
428 const xmlChar xmlSecHrefRSAKeyValue[]           = "http://www.w3.org/2000/09/xmldsig#RSAKeyValue";
429 const xmlChar xmlSecNodeRSAModulus[]            = "Modulus";
430 const xmlChar xmlSecNodeRSAExponent[]           = "Exponent";
431 const xmlChar xmlSecNodeRSAPrivateExponent[]    = "PrivateExponent";
432
433 const xmlChar xmlSecNameRsaMd5[]                = "rsa-md5";
434 const xmlChar xmlSecHrefRsaMd5[]                = "http://www.w3.org/2001/04/xmldsig-more#rsa-md5";
435
436 const xmlChar xmlSecNameRsaRipemd160[]          = "rsa-ripemd160";
437 const xmlChar xmlSecHrefRsaRipemd160[]          = "http://www.w3.org/2001/04/xmldsig-more#rsa-ripemd160";
438
439 const xmlChar xmlSecNameRsaSha1[]               = "rsa-sha1";
440 const xmlChar xmlSecHrefRsaSha1[]               = "http://www.w3.org/2000/09/xmldsig#rsa-sha1";
441
442 const xmlChar xmlSecNameRsaSha224[]             = "rsa-sha224";
443 const xmlChar xmlSecHrefRsaSha224[]             = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha224";
444
445 const xmlChar xmlSecNameRsaSha256[]             = "rsa-sha256";
446 const xmlChar xmlSecHrefRsaSha256[]             = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
447
448 const xmlChar xmlSecNameRsaSha384[]             = "rsa-sha384";
449 const xmlChar xmlSecHrefRsaSha384[]             = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha384";
450
451 const xmlChar xmlSecNameRsaSha512[]             = "rsa-sha512";
452 const xmlChar xmlSecHrefRsaSha512[]             = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha512";
453
454 const xmlChar xmlSecNameRsaPkcs1[]              = "rsa-1_5";
455 const xmlChar xmlSecHrefRsaPkcs1[]              = "http://www.w3.org/2001/04/xmlenc#rsa-1_5";
456
457 const xmlChar xmlSecNameRsaOaep[]               = "rsa-oaep-mgf1p";
458 const xmlChar xmlSecHrefRsaOaep[]               = "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p";
459 const xmlChar xmlSecNodeRsaOAEPparams[]         = "OAEPparams";
460
461 /*************************************************************************
462  *
463  * GOSTR3411_94 strings
464  *
465  ************************************************************************/
466 const xmlChar xmlSecNameGostR3411_94[]                  = "gostr3411";
467 const xmlChar xmlSecHrefGostR3411_94[]                  = "http://www.w3.org/2001/04/xmldsig-more#gostr3411";
468
469 /*************************************************************************
470  *
471  * SHA1 strings
472  *
473  ************************************************************************/
474 const xmlChar xmlSecNameSha1[]                  = "sha1";
475 const xmlChar xmlSecHrefSha1[]                  = "http://www.w3.org/2000/09/xmldsig#sha1";
476
477 const xmlChar xmlSecNameSha224[]                = "sha224";
478 const xmlChar xmlSecHrefSha224[]                = "http://www.w3.org/2001/04/xmldsig-more#sha224";
479
480 const xmlChar xmlSecNameSha256[]                = "sha256";
481 const xmlChar xmlSecHrefSha256[]                = "http://www.w3.org/2001/04/xmlenc#sha256";
482
483 const xmlChar xmlSecNameSha384[]                = "sha384";
484 const xmlChar xmlSecHrefSha384[]                = "http://www.w3.org/2001/04/xmldsig-more#sha384";
485
486 const xmlChar xmlSecNameSha512[]                = "sha512";
487 const xmlChar xmlSecHrefSha512[]                = "http://www.w3.org/2001/04/xmlenc#sha512";
488
489 /*************************************************************************
490  *
491  * X509 strings
492  *
493  ************************************************************************/
494 const xmlChar xmlSecNameX509Data[]              = "x509";
495 const xmlChar xmlSecNodeX509Data[]              = "X509Data";
496 const xmlChar xmlSecHrefX509Data[]              = "http://www.w3.org/2000/09/xmldsig#X509Data";
497
498 const xmlChar xmlSecNodeX509Certificate[]       = "X509Certificate";
499 const xmlChar xmlSecNodeX509CRL[]               = "X509CRL";
500 const xmlChar xmlSecNodeX509SubjectName[]       = "X509SubjectName";
501 const xmlChar xmlSecNodeX509IssuerSerial[]      = "X509IssuerSerial";
502 const xmlChar xmlSecNodeX509IssuerName[]        = "X509IssuerName";
503 const xmlChar xmlSecNodeX509SerialNumber[]      = "X509SerialNumber";
504 const xmlChar xmlSecNodeX509SKI[]               = "X509SKI";
505
506 const xmlChar xmlSecNameRawX509Cert[]           = "raw-x509-cert";
507 const xmlChar xmlSecHrefRawX509Cert[]           = "http://www.w3.org/2000/09/xmldsig#rawX509Certificate";
508
509 const xmlChar xmlSecNameX509Store[]             = "x509-store";
510
511 /*************************************************************************
512  *
513  * PGP strings
514  *
515  ************************************************************************/
516 const xmlChar xmlSecNamePGPData[]               = "pgp";
517 const xmlChar xmlSecNodePGPData[]               = "PGPData";
518 const xmlChar xmlSecHrefPGPData[]               = "http://www.w3.org/2000/09/xmldsig#PGPData";
519
520 /*************************************************************************
521  *
522  * SPKI strings
523  *
524  ************************************************************************/
525 const xmlChar xmlSecNameSPKIData[]              = "spki";
526 const xmlChar xmlSecNodeSPKIData[]              = "SPKIData";
527 const xmlChar xmlSecHrefSPKIData[]              = "http://www.w3.org/2000/09/xmldsig#SPKIData";
528
529 /*************************************************************************
530  *
531  * XPath/XPointer strings
532  *
533  ************************************************************************/
534 const xmlChar xmlSecNameXPath[]                 = "xpath";
535 const xmlChar xmlSecNodeXPath[]                 = "XPath";
536
537 const xmlChar xmlSecNameXPath2[]                = "xpath2";
538 const xmlChar xmlSecNodeXPath2[]                = "XPath";
539 const xmlChar xmlSecXPath2FilterIntersect[]     = "intersect";
540 const xmlChar xmlSecXPath2FilterSubtract[]      = "subtract";
541 const xmlChar xmlSecXPath2FilterUnion[]         = "union";
542
543 const xmlChar xmlSecNameXPointer[]              = "xpointer";
544 const xmlChar xmlSecNodeXPointer[]              = "XPointer";
545
546 /*************************************************************************
547  *
548  * Xslt strings
549  *
550  ************************************************************************/
551 const xmlChar xmlSecNameXslt[]                  = "xslt";
552 const xmlChar xmlSecHrefXslt[]                  = "http://www.w3.org/TR/1999/REC-xslt-19991116";
553
554 #ifndef XMLSEC_NO_SOAP
555 /*************************************************************************
556  *
557  * SOAP 1.1/1.2 strings
558  *
559  ************************************************************************/
560 const xmlChar xmlSecNodeEnvelope[]              = "Envelope";
561 const xmlChar xmlSecNodeHeader[]                = "Header";
562 const xmlChar xmlSecNodeBody[]                  = "Body";
563 const xmlChar xmlSecNodeFault[]                 = "Fault";
564 const xmlChar xmlSecNodeFaultCode[]             = "faultcode";
565 const xmlChar xmlSecNodeFaultString[]           = "faultstring";
566 const xmlChar xmlSecNodeFaultActor[]            = "faultactor";
567 const xmlChar xmlSecNodeFaultDetail[]           = "detail";
568 const xmlChar xmlSecNodeCode[]                  = "Code";
569 const xmlChar xmlSecNodeReason[]                = "Reason";
570 const xmlChar xmlSecNodeNode[]                  = "Node";
571 const xmlChar xmlSecNodeRole[]                  = "Role";
572 const xmlChar xmlSecNodeDetail[]                = "Detail";
573 const xmlChar xmlSecNodeValue[]                 = "Value";
574 const xmlChar xmlSecNodeSubcode[]               = "Subcode";
575 const xmlChar xmlSecNodeText[]                  = "Text";
576
577
578 const xmlChar xmlSecSoapFaultCodeVersionMismatch[]      = "VersionMismatch";
579 const xmlChar xmlSecSoapFaultCodeMustUnderstand[]       = "MustUnderstand";
580 const xmlChar xmlSecSoapFaultCodeClient[]               = "Client";
581 const xmlChar xmlSecSoapFaultCodeServer[]               = "Server";
582 const xmlChar xmlSecSoapFaultCodeReceiver[]             = "Receiver";
583 const xmlChar xmlSecSoapFaultCodeSender[]               = "Sender";
584 const xmlChar xmlSecSoapFaultDataEncodningUnknown[]     = "DataEncodingUnknown";
585
586
587 #endif /* XMLSEC_NO_SOAP */
588
589 /*************************************************************************
590  *
591  * Utility strings
592  *
593  ************************************************************************/
594 const xmlChar xmlSecStringEmpty[]               = "";
595 const xmlChar xmlSecStringCR[]                  = "\n";
596
597
598
599
600
601