summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Sanin <aleksey@src.gnome.org>2003-04-30 23:49:23 +0000
committerAleksey Sanin <aleksey@src.gnome.org>2003-04-30 23:49:23 +0000
commitca51874669ec1ebef50eba9f9323934176730171 (patch)
tree3a6a930a4040324e9483b719ff78bc948e0e986b
parente3cfe6687c7db6d29909ac55513793a2ff544936 (diff)
downloadxmlsec1-ca51874669ec1ebef50eba9f9323934176730171.tar.gz
xmlsec1-ca51874669ec1ebef50eba9f9323934176730171.tar.bz2
xmlsec1-ca51874669ec1ebef50eba9f9323934176730171.zip
added xkms strings
-rw-r--r--ChangeLog5
-rw-r--r--include/xmlsec/strings.h75
-rw-r--r--src/strings.c73
3 files changed, 152 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e63dc7b..906af3c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr 30 16:31:10 2003 Aleksey Sanin <aleksey@aleksey.com>
+
+ * include/xmlsec/strings.h src/strings.c: added strings
+ for XKMS (XKISS) Locate request/result
+
Wed Apr 30 01:01:06 2003 Aleksey Sanin <aleksey@aleksey.com>
* config.h.in configure.in: added check for timegm function
diff --git a/include/xmlsec/strings.h b/include/xmlsec/strings.h
index 4ea42ea1..ffa388cb 100644
--- a/include/xmlsec/strings.h
+++ b/include/xmlsec/strings.h
@@ -69,11 +69,84 @@ XMLSEC_EXPORT_VAR const xmlChar xmlSecTypeEncElement[];
/*************************************************************************
*
- * XKMS Nodes
+ * XKMS nodes, attributes and value strings
*
************************************************************************/
+#ifndef XMLSEC_NO_XKMS
XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeLocateRequest[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeLocateResult[];
XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeValidateRequest[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeValidateResult[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeCompoundRequest[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeCompoundResult[];
+
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeMessageExtension[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeOpaqueClientData[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeResponseMechanism[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeRespondWith[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodePendingNotification[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeQueryKeyBinding[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeKeyUsage[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeUseKeyWith[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeTimeInstant[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeRequestSignatureValue[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeUnverifiedKeyBinding[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecNodeValidityInterval[];
+
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrService[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrNonce[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrOriginalRequestId[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrResponseLimit[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrMechanism[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrIdentifier[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrApplication[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrResultMajor[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrResultMinor[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrRequestId[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrNotBefore[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrNotOnOrAfter[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecAttrTime[];
+
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResponsePending[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResponseRepresent[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResponseRequestSignatureValue[];
+
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithKeyName[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithKeyValue[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithX509Cert[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithX509Chain[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithX509CRL[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithOCSP[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithRetrievalMethod[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithPGP[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithPGPWeb[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithSPKI[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecRespondWithPrivateKey[];
+
+XMLSEC_EXPORT_VAR const xmlChar xmlSecStatusResultSuccess[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecStatusResultFailed[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecStatusResultPending[];
+
+XMLSEC_EXPORT_VAR const xmlChar xmlSecKeyUsageEncryption[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecKeyUsageSignature[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecKeyUsageExchange[];
+
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMajorCodeSuccess[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMajorCodeVersionMismatch[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMajorCodeSender[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMajorCodeReceiver[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMajorCodeRepresent[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMajorCodePending[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeNoMatch[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeTooManyResponses[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeIncomplete[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeFailure[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeRefused[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeNoAuthentication[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeMessageNotSupported[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeUnknownResponseId[];
+XMLSEC_EXPORT_VAR const xmlChar xmlSecResultMinorCodeNotSynchronous[];
+#endif /* XMLSEC_NO_XKMS */
/*************************************************************************
*
diff --git a/src/strings.c b/src/strings.c
index 8f7347b0..d215cf71 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -66,8 +66,81 @@ const xmlChar xmlSecTypeEncElement[] = "http://www.w3.org/2001/04/xmlenc#Elemen
* XKMS Nodes
*
************************************************************************/
+#ifndef XMLSEC_NO_XKMS
const xmlChar xmlSecNodeLocateRequest[] = "LocateRequest";
+const xmlChar xmlSecNodeLocateResult[] = "LocateResult";
const xmlChar xmlSecNodeValidateRequest[] = "ValidateRequest";
+const xmlChar xmlSecNodeValidateResult[] = "ValidateResult";
+const xmlChar xmlSecNodeCompoundRequest[] = "CompoundRequest";
+const xmlChar xmlSecNodeCompoundResult[] = "CompoundResult";
+
+const xmlChar xmlSecNodeMessageExtension[] = "MessageExtension";
+const xmlChar xmlSecNodeOpaqueClientData[] = "OpaqueClientData";
+const xmlChar xmlSecNodeResponseMechanism[] = "ResponseMechanism";
+const xmlChar xmlSecNodeRespondWith[] = "RespondWith";
+const xmlChar xmlSecNodePendingNotification[] = "PendingNotification";
+const xmlChar xmlSecNodeQueryKeyBinding[] = "QueryKeyBinding";
+const xmlChar xmlSecNodeKeyUsage[] = "KeyUsage";
+const xmlChar xmlSecNodeUseKeyWith[] = "UseKeyWith";
+const xmlChar xmlSecNodeTimeInstant[] = "TimeInstant";
+const xmlChar xmlSecNodeRequestSignatureValue[] = "RequestSignatureValue";
+const xmlChar xmlSecNodeUnverifiedKeyBinding[] = "UnverifiedKeyBinding";
+const xmlChar xmlSecNodeValidityInterval[] = "ValidityInterval";
+
+const xmlChar xmlSecAttrService[] = "Service";
+const xmlChar xmlSecAttrNonce[] = "Nonce";
+const xmlChar xmlSecAttrOriginalRequestId[] = "OriginalRequestId";
+const xmlChar xmlSecAttrResponseLimit[] = "ResponseLimit";
+const xmlChar xmlSecAttrMechanism[] = "Mechanism[";
+const xmlChar xmlSecAttrIdentifier[] = "Identifier";
+const xmlChar xmlSecAttrApplication[] = "Application";
+const xmlChar xmlSecAttrResultMajor[] = "ResultMajor";
+const xmlChar xmlSecAttrResultMinor[] = "ResultMinor";
+const xmlChar xmlSecAttrRequestId[] = "RequestId";
+const xmlChar xmlSecAttrNotBefore[] = "NotBefore";
+const xmlChar xmlSecAttrNotOnOrAfter[] = "NotOnOrAfter";
+const xmlChar xmlSecAttrTime[] = "Time";
+
+const xmlChar xmlSecResponsePending[] = "Pending";
+const xmlChar xmlSecResponseRepresent[] = "Represent";
+const xmlChar xmlSecResponseRequestSignatureValue[] = "RequestSignatureValue";
+
+const xmlChar xmlSecRespondWithKeyName[] = "KeyName";
+const xmlChar xmlSecRespondWithKeyValue[] = "KeyValue";
+const xmlChar xmlSecRespondWithX509Cert[] = "X509Cert";
+const xmlChar xmlSecRespondWithX509Chain[] = "X509Chain";
+const xmlChar xmlSecRespondWithX509CRL[] = "X509CRL";
+const xmlChar xmlSecRespondWithOCSP[] = "OCSP";
+const xmlChar xmlSecRespondWithRetrievalMethod[]= "RetrievalMethod";
+const xmlChar xmlSecRespondWithPGP[] = "PGP";
+const xmlChar xmlSecRespondWithPGPWeb[] = "PGPWeb";
+const xmlChar xmlSecRespondWithSPKI[] = "SPKI";
+const xmlChar xmlSecRespondWithPrivateKey[] = "PrivateKey";
+
+const xmlChar xmlSecStatusResultSuccess[] = "Success";
+const xmlChar xmlSecStatusResultFailed[] = "Failed";
+const xmlChar xmlSecStatusResultPending[] = "Pending";
+
+const xmlChar xmlSecKeyUsageEncryption[] = "Encryption";
+const xmlChar xmlSecKeyUsageSignature[] = "Signature";
+const xmlChar xmlSecKeyUsageExchange[] = "Exchange";
+
+const xmlChar xmlSecResultMajorCodeSuccess[] = "Success";
+const xmlChar xmlSecResultMajorCodeVersionMismatch[]= "VersionMismatch";
+const xmlChar xmlSecResultMajorCodeSender[] = "Sender";
+const xmlChar xmlSecResultMajorCodeReceiver[] = "Receiver";
+const xmlChar xmlSecResultMajorCodeRepresent[] = "Represent";
+const xmlChar xmlSecResultMajorCodePending[] = "Pending";
+const xmlChar xmlSecResultMinorCodeNoMatch[] = "NoMatch";
+const xmlChar xmlSecResultMinorCodeTooManyResponses[] = "TooManyResponses";
+const xmlChar xmlSecResultMinorCodeIncomplete[] = "Incomplete";
+const xmlChar xmlSecResultMinorCodeFailure[] = "Failure";
+const xmlChar xmlSecResultMinorCodeRefused[] = "Refused";
+const xmlChar xmlSecResultMinorCodeNoAuthentication[] = "NoAuthentication";
+const xmlChar xmlSecResultMinorCodeMessageNotSupported[]= "MessageNotSupported";
+const xmlChar xmlSecResultMinorCodeUnknownResponseId[] = "UnknownResponseId";
+const xmlChar xmlSecResultMinorCodeNotSynchronous[] = "NotSynchronous";
+#endif /* XMLSEC_NO_XKMS */
/*************************************************************************
*