diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2004-08-21 10:13:16 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2004-08-21 10:13:16 +0000 |
| commit | 1f2b0dc7ae195bf81484a55e068aae38d450c7ea (patch) | |
| tree | bfe6be18235fa667b16ebb9782bbd8f951a3d945 | |
| parent | 9fc1e8fa3c2c2d29d1ed116704e9f7528a6a1cbc (diff) | |
replaced lots of const char* wasting memory and a treat to binary compatibility
with lots of #define wasting nothing at all.
| -rw-r--r-- | lasso/xml/Makefile.am | 1 | ||||
| -rw-r--r-- | lasso/xml/strings.c | 152 | ||||
| -rw-r--r-- | lasso/xml/strings.h | 159 |
3 files changed, 75 insertions, 237 deletions
diff --git a/lasso/xml/Makefile.am b/lasso/xml/Makefile.am index 7e7c4e5c..6a3fb9fb 100644 --- a/lasso/xml/Makefile.am +++ b/lasso/xml/Makefile.am @@ -10,7 +10,6 @@ INCLUDES = \ noinst_LTLIBRARIES = liblasso-xml.la liblasso_xml_la_SOURCES = \ - strings.c \ tools.c \ debug.c \ errors.c \ diff --git a/lasso/xml/strings.c b/lasso/xml/strings.c deleted file mode 100644 index fa0fe002..00000000 --- a/lasso/xml/strings.c +++ /dev/null @@ -1,152 +0,0 @@ -/* $Id$ - * - * Lasso - A free implementation of the Liberty Alliance specifications. - * - * Copyright (C) 2004 Entr'ouvert - * http://lasso.entrouvert.org - * - * Authors: Nicolas Clapies <nclapies@entrouvert.com> - * Valery Febvre <vfebvre@easter-eggs.com> - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - */ - -#include <lasso/xml/strings.h> - -/*****************************************************************************/ -/* Lasso */ -/*****************************************************************************/ - -/* prefix & href */ -const xmlChar lassoLassoHRef[] = "http://www.entrouvert.org/namespaces/lasso/0.0"; -const xmlChar lassoLassoPrefix[] = "lasso"; - -/*****************************************************************************/ -/* Liberty Alliance */ -/*****************************************************************************/ - -/* prefix & href */ -const xmlChar lassoLibHRef[] = "urn:liberty:iff:2003-08"; -const xmlChar lassoLibPrefix[] = "lib"; - -/* Versioning */ -const xmlChar lassoLibMajorVersion[] = "1"; -const xmlChar lassoLibMinorVersion[] = "2"; - -/* NameIDPolicyType */ -const xmlChar lassoLibNameIDPolicyTypeNone[] = "none"; -const xmlChar lassoLibNameIDPolicyTypeOneTime[] = "onetime"; -const xmlChar lassoLibNameIDPolicyTypeFederated[] = "federated"; -const xmlChar lassoLibNameIDPolicyTypeAny[] = "any"; - -/* AuthnContextComparison */ -const xmlChar lassoLibAuthnContextComparisonExact[] = "exact"; -const xmlChar lassoLibAuthnContextComparisonMinimum[] = "minimum"; -const xmlChar lassoLibAuthnContextComparisonBetter[] = "better"; - -/* StatusCodes */ -const xmlChar lassoLibStatusCodeFederationDoesNotExist[] = "lib:FederationDoesNotExist"; -const xmlChar lassoLibStatusCodeInvalidAssertionConsumerServiceIndex[] = "lib:InvalidAssertionConsumerServiceIndex"; -const xmlChar lassoLibStatusCodeInvalidSignature[] = "lib:InvalidSignature"; -const xmlChar lassoLibStatusCodeNoAuthnContext[] = "lib:NoAuthnContext"; -const xmlChar lassoLibStatusCodeNoAvailableIDP[] = "lib:NoAvailableIDP"; -const xmlChar lassoLibStatusCodeNoPassive[] = "lib:NoPassive"; -const xmlChar lassoLibStatusCodeNoSupportedIDP[] = "lib:NoSupportedIDP"; -const xmlChar lassoLibStatusCodeProxyCountExceeded[] = "lib:ProxyCountExceeded"; -const xmlChar lassoLibStatusCodeUnknownPrincipal[] = "lib:UnknownPrincipal"; -const xmlChar lassoLibStatusCodeUnsignedAuthnRequest[] = "lib:UnsignedAuthnRequest"; -const xmlChar lassoLibStatusCodeUnsupportedProfile[] = "lib:UnsupportedProfile"; - -/* ProtocolProfile */ -const xmlChar lassoLibProtocolProfileSSOGet[] = "http://projectliberty.org/profiles/sso-get"; -const xmlChar lassoLibProtocolProfileSSOPost[] = "http://projectliberty.org/profiles/sso-post"; -const xmlChar lassoLibProtocolProfileBrwsArt[] = "http://projectliberty.org/profiles/brws-art"; -const xmlChar lassoLibProtocolProfileBrwsPost[] = "http://projectliberty.org/profiles/brws-post"; -const xmlChar lassoLibProtocolProfileFedTermIdpHttp[] = "http://projectliberty.org/profiles/fedterm-idp-http"; -const xmlChar lassoLibProtocolProfileFedTermIdpSoap[] = "http://projectliberty.org/profiles/fedterm-idp-soap"; -const xmlChar lassoLibProtocolProfileFedTermSpHttp[] = "http://projectliberty.org/profiles/fedterm-sp-http"; -const xmlChar lassoLibProtocolProfileFedTermSpSoap[] = "http://projectliberty.org/profiles/fedterm-sp-soap"; -const xmlChar lassoLibProtocolProfileRniIdpHttp[] = "http://projectliberty.org/profiles/rni-idp-http"; -const xmlChar lassoLibProtocolProfileRniIdpSoap[] = "http://projectliberty.org/profiles/rni-idp-soap"; -const xmlChar lassoLibProtocolProfileRniSpHttp[] = "http://projectliberty.org/profiles/rni-sp-http"; -const xmlChar lassoLibProtocolProfileRniSpSoap[] = "http://projectliberty.org/profiles/rni-sp-soap"; -const xmlChar lassoLibProtocolProfileSloSpHttp[] = "http://projectliberty.org/profiles/slo-sp-http"; -const xmlChar lassoLibProtocolProfileSloSpSoap[] = "http://projectliberty.org/profiles/slo-sp-soap"; -const xmlChar lassoLibProtocolProfileSloIdpHttp[] = "http://projectliberty.org/profiles/slo-idp-http"; -const xmlChar lassoLibProtocolProfileSloIdpSoap[] = "http://projectliberty.org/profiles/slo-idp-soap"; - -/* NameIdentifier formats */ -const xmlChar lassoLibNameIdentifierFormatFederated[] = "urn:liberty:iff:nameid:federated"; -const xmlChar lassoLibNameIdentifierFormatOneTime[] = "urn:liberty:iff:nameid:one-time"; -const xmlChar lassoLibNameIdentifierFormatEncrypted[] = "urn:liberty:iff:nameid:encrypted"; -const xmlChar lassoLibNameIdentifierFormatEntityID[] = "urn:liberty:iff:nameid:entityID"; - -/* Consent */ -const xmlChar lassoLibConsentObtained[] = "urn:liberty:consent:obtained"; -const xmlChar lassoLibConsentUnavailable[] = "urn:liberty:consent:unavailable"; -const xmlChar lassoLibConsentInapplicable[] = "urn:liberty:consent:inapplicable"; - -/*****************************************************************************/ -/* METADATA */ -/*****************************************************************************/ - -/* prefix & href */ -const xmlChar lassoMetadataHRef[] = "urn:liberty:metadata:2003-08"; -const xmlChar lassoMetadataPrefix[] = "md"; - -/*****************************************************************************/ -/* SAML */ -/*****************************************************************************/ - -/* prefix & href */ -const xmlChar lassoSamlAssertionHRef[] = "urn:oasis:names:tc:SAML:1.0:assertion"; -const xmlChar lassoSamlAssertionPrefix[] = "saml"; -const xmlChar lassoSamlProtocolHRef[] = "urn:oasis:names:tc:SAML:1.0:protocol"; -const xmlChar lassoSamlProtocolPrefix[] = "samlp"; - -/* Versioning */ -const xmlChar lassoSamlMajorVersion[] = "1"; -const xmlChar lassoSamlMinorVersion[] = "1"; - -/* StatusCodes */ -const xmlChar lassoSamlStatusCodeRequestDenied[] = "samlp:RequestDenied"; -const xmlChar lassoSamlStatusCodeSuccess[] = "samlp:Success"; - -/* AuthenticationMethods */ -const xmlChar lassoSamlAuthenticationMethodPassword[] = "urn:oasis:names:tc:SAML:1.0:am:password"; -const xmlChar lassoSamlAuthenticationMethodKerberos[] = "urn:ietf:rfc:1510"; -const xmlChar lassoSamlAuthenticationMethodSecureRemotePassword[] = "urn:ietf:rfc:2945"; -const xmlChar lassoSamlAuthenticationMethodHardwareToken[] = "urn:oasis:names:tc:SAML:1.0:am:HardwareToken"; -const xmlChar lassoSamlAuthenticationMethodSmartcardPki[] = "urn:ietf:rfc:2246"; -const xmlChar lassoSamlAuthenticationMethodSoftwarePki[] = "urn:oasis:names:tc:SAML:1.0:am:X509-PKI"; -const xmlChar lassoSamlAuthenticationMethodPgp[] = "urn:oasis:names:tc:SAML:1.0:am:PGP"; -const xmlChar lassoSamlAuthenticationMethodSPki[] = "urn:oasis:names:tc:SAML:1.0:am:SPKI"; -const xmlChar lassoSamlAuthenticationMethodXkms[] = "urn:oasis:names:tc:SAML:1.0:am:XKMS"; -const xmlChar lassoSamlAuthenticationMethodXmlDSig[] = "urn:ietf:rfc:3075"; -const xmlChar lassoSamlAuthenticationMethodUnspecified[] = "urn:oasis:names:tc:SAML:1.0:am:unspecified"; - -/* ConfirmationMethods */ -const xmlChar lassoSamlConfirmationMethodArtifact01[] = "urn:oasis:names:tc:SAML:1.0:cm:artifact-01"; -const xmlChar lassoSamlConfirmationMethodBearer[] = "urn:oasis:names:tc:SAML:1.0:cm:bearer"; -const xmlChar lassoSamlConfirmationMethodHolderOfKey[] = "urn:oasis:names:tc:SAML:1.0:cm:holder-of-key"; -const xmlChar lassoSamlConfirmationMethodSenderVouches[] = "urn:oasis:names:tc:SAML:1.0:cm:sender-vouches"; - -/*****************************************************************************/ -/* SOAP */ -/*****************************************************************************/ - -/* prefix & href */ -const xmlChar lassoSoapEnvHRef[] = "http://schemas.xmlsoap.org/soap/envelope/"; -const xmlChar lassoSoapEnvPrefix[] = "soap-env"; diff --git a/lasso/xml/strings.h b/lasso/xml/strings.h index 366bcc78..5cc2d2e2 100644 --- a/lasso/xml/strings.h +++ b/lasso/xml/strings.h @@ -26,141 +26,132 @@ #ifndef __LASSO_STRINGS_H__ #define __LASSO_STRINGS_H__ -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -#include <lasso/export.h> -#include <libxml/tree.h> - /*****************************************************************************/ /* Lasso */ /*****************************************************************************/ /* prefix & href */ -LASSO_EXPORT_VAR const xmlChar lassoLassoHRef[]; -LASSO_EXPORT_VAR const xmlChar lassoLassoPrefix[]; +#define lassoLassoHRef "http://www.entrouvert.org/namespaces/lasso/0.0" +#define lassoLassoPrefix "lasso" /*****************************************************************************/ /* Liberty Alliance */ /*****************************************************************************/ /* prefix & href */ -LASSO_EXPORT_VAR const xmlChar lassoLibHRef[]; -LASSO_EXPORT_VAR const xmlChar lassoLibPrefix[]; +#define lassoLibHRef "urn:liberty:iff:2003-08" +#define lassoLibPrefix "lib" /* Versioning */ -LASSO_EXPORT_VAR const xmlChar lassoLibMajorVersion[]; -LASSO_EXPORT_VAR const xmlChar lassoLibMinorVersion[]; +#define lassoLibMajorVersion "1" +#define lassoLibMinorVersion "2" /* NameIDPolicyType */ -LASSO_EXPORT_VAR const xmlChar lassoLibNameIDPolicyTypeNone[]; -LASSO_EXPORT_VAR const xmlChar lassoLibNameIDPolicyTypeOneTime[]; -LASSO_EXPORT_VAR const xmlChar lassoLibNameIDPolicyTypeFederated[]; -LASSO_EXPORT_VAR const xmlChar lassoLibNameIDPolicyTypeAny[]; +#define lassoLibNameIDPolicyTypeNone "none" +#define lassoLibNameIDPolicyTypeOneTime "onetime" +#define lassoLibNameIDPolicyTypeFederated "federated" +#define lassoLibNameIDPolicyTypeAny "any" /* AuthnContextComparison */ -LASSO_EXPORT_VAR const xmlChar lassoLibAuthnContextComparisonExact[]; -LASSO_EXPORT_VAR const xmlChar lassoLibAuthnContextComparisonMinimum[]; -LASSO_EXPORT_VAR const xmlChar lassoLibAuthnContextComparisonBetter[]; +#define lassoLibAuthnContextComparisonExact "exact" +#define lassoLibAuthnContextComparisonMinimum "minimum" +#define lassoLibAuthnContextComparisonBetter "better" /* StatusCodes */ -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeFederationDoesNotExist[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeInvalidAssertionConsumerServiceIndex[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeInvalidSignature[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeNoAuthnContext[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeNoAvailableIDP[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeNoPassive[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeNoSupportedIDP[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeProxyCountExceeded[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeUnknownPrincipal[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeUnsignedAuthnRequest[]; -LASSO_EXPORT_VAR const xmlChar lassoLibStatusCodeUnsupportedProfile[]; +#define lassoLibStatusCodeFederationDoesNotExist "lib:FederationDoesNotExist" +#define lassoLibStatusCodeInvalidAssertionConsumerServiceIndex "lib:InvalidAssertionConsumerServiceIndex" +#define lassoLibStatusCodeInvalidSignature "lib:InvalidSignature" +#define lassoLibStatusCodeNoAuthnContext "lib:NoAuthnContext" +#define lassoLibStatusCodeNoAvailableIDP "lib:NoAvailableIDP" +#define lassoLibStatusCodeNoPassive "lib:NoPassive" +#define lassoLibStatusCodeNoSupportedIDP "lib:NoSupportedIDP" +#define lassoLibStatusCodeProxyCountExceeded "lib:ProxyCountExceeded" +#define lassoLibStatusCodeUnknownPrincipal "lib:UnknownPrincipal" +#define lassoLibStatusCodeUnsignedAuthnRequest "lib:UnsignedAuthnRequest" +#define lassoLibStatusCodeUnsupportedProfile "lib:UnsupportedProfile" /* ProtocolProfile */ -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileSSOGet[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileSSOPost[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileBrwsArt[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileBrwsPost[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileFedTermIdpHttp[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileFedTermIdpSoap[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileFedTermSpHttp[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileFedTermSpSoap[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileRniIdpHttp[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileRniIdpSoap[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileRniSpHttp[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileRniSpSoap[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileSloSpHttp[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileSloSpSoap[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileSloIdpHttp[]; -LASSO_EXPORT_VAR const xmlChar lassoLibProtocolProfileSloIdpSoap[]; +#define lassoLibProtocolProfileSSOGet "http://projectliberty.org/profiles/sso-get" +#define lassoLibProtocolProfileSSOPost "http://projectliberty.org/profiles/sso-post" +#define lassoLibProtocolProfileBrwsArt "http://projectliberty.org/profiles/brws-art" +#define lassoLibProtocolProfileBrwsPost "http://projectliberty.org/profiles/brws-post" +#define lassoLibProtocolProfileFedTermIdpHttp "http://projectliberty.org/profiles/fedterm-idp-http" +#define lassoLibProtocolProfileFedTermIdpSoap "http://projectliberty.org/profiles/fedterm-idp-soap" +#define lassoLibProtocolProfileFedTermSpHttp "http://projectliberty.org/profiles/fedterm-sp-http" +#define lassoLibProtocolProfileFedTermSpSoap "http://projectliberty.org/profiles/fedterm-sp-soap" +#define lassoLibProtocolProfileRniIdpHttp "http://projectliberty.org/profiles/rni-idp-http" +#define lassoLibProtocolProfileRniIdpSoap "http://projectliberty.org/profiles/rni-idp-soap" +#define lassoLibProtocolProfileRniSpHttp "http://projectliberty.org/profiles/rni-sp-http" +#define lassoLibProtocolProfileRniSpSoap "http://projectliberty.org/profiles/rni-sp-soap" +#define lassoLibProtocolProfileSloSpHttp "http://projectliberty.org/profiles/slo-sp-http" +#define lassoLibProtocolProfileSloSpSoap "http://projectliberty.org/profiles/slo-sp-soap" +#define lassoLibProtocolProfileSloIdpHttp "http://projectliberty.org/profiles/slo-idp-http" +#define lassoLibProtocolProfileSloIdpSoap "http://projectliberty.org/profiles/slo-idp-soap" /* NameIdentifier formats */ -LASSO_EXPORT_VAR const xmlChar lassoLibNameIdentifierFormatFederated[]; -LASSO_EXPORT_VAR const xmlChar lassoLibNameIdentifierFormatOneTime[]; -LASSO_EXPORT_VAR const xmlChar lassoLibNameIdentifierFormatEncrypted[]; -LASSO_EXPORT_VAR const xmlChar lassoLibNameIdentifierFormatEntityID[]; +#define lassoLibNameIdentifierFormatFederated "urn:liberty:iff:nameid:federated" +#define lassoLibNameIdentifierFormatOneTime "urn:liberty:iff:nameid:one-time" +#define lassoLibNameIdentifierFormatEncrypted "urn:liberty:iff:nameid:encrypted" +#define lassoLibNameIdentifierFormatEntityID "urn:liberty:iff:nameid:entityID" /* Consent */ -LASSO_EXPORT_VAR const xmlChar lassoLibConsentObtained[]; -LASSO_EXPORT_VAR const xmlChar lassoLibConsentUnavailable[]; -LASSO_EXPORT_VAR const xmlChar lassoLibConsentInapplicable[]; +#define lassoLibConsentObtained "urn:liberty:consent:obtained" +#define lassoLibConsentUnavailable "urn:liberty:consent:unavailable" +#define lassoLibConsentInapplicable "urn:liberty:consent:inapplicable" /*****************************************************************************/ /* METADATA */ /*****************************************************************************/ /* prefix & href */ -LASSO_EXPORT_VAR const xmlChar lassoMetadataHRef[]; -LASSO_EXPORT_VAR const xmlChar lassoMetadataPrefix[]; +#define lassoMetadataHRef "urn:liberty:metadata:2003-08" +#define lassoMetadataPrefix "md" /*****************************************************************************/ /* SAML */ /*****************************************************************************/ /* prefix & href */ -LASSO_EXPORT_VAR const xmlChar lassoSamlAssertionHRef[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAssertionPrefix[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlProtocolHRef[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlProtocolPrefix[]; +#define lassoSamlAssertionHRef "urn:oasis:names:tc:SAML:1.0:assertion" +#define lassoSamlAssertionPrefix "saml" +#define lassoSamlProtocolHRef "urn:oasis:names:tc:SAML:1.0:protocol" +#define lassoSamlProtocolPrefix "samlp" /* Versioning */ -LASSO_EXPORT_VAR const xmlChar lassoSamlMajorVersion[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlMinorVersion[]; +#define lassoSamlMajorVersion "1" +#define lassoSamlMinorVersion "1" /* StatusCodes */ -LASSO_EXPORT_VAR const xmlChar lassoSamlStatusCodeRequestDenied[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlStatusCodeSuccess[]; +#define lassoSamlStatusCodeRequestDenied "samlp:RequestDenied" +#define lassoSamlStatusCodeSuccess "samlp:Success" /* AuthenticationMethods */ -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodPassword[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodKerberos[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodSecureRemotePassword[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodHardwareToken[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodSmartcardPki[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodSoftwarePki[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodPgp[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodSPki[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodXkms[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodXmlDSig[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlAuthenticationMethodUnspecified[]; +#define lassoSamlAuthenticationMethodPassword "urn:oasis:names:tc:SAML:1.0:am:password" +#define lassoSamlAuthenticationMethodKerberos "urn:ietf:rfc:1510" +#define lassoSamlAuthenticationMethodSecureRemotePassword "urn:ietf:rfc:2945" +#define lassoSamlAuthenticationMethodHardwareToken "urn:oasis:names:tc:SAML:1.0:am:HardwareToken" +#define lassoSamlAuthenticationMethodSmartcardPki "urn:ietf:rfc:2246" +#define lassoSamlAuthenticationMethodSoftwarePki "urn:oasis:names:tc:SAML:1.0:am:X509-PKI" +#define lassoSamlAuthenticationMethodPgp "urn:oasis:names:tc:SAML:1.0:am:PGP" +#define lassoSamlAuthenticationMethodSPki "urn:oasis:names:tc:SAML:1.0:am:SPKI" +#define lassoSamlAuthenticationMethodXkms "urn:oasis:names:tc:SAML:1.0:am:XKMS" +#define lassoSamlAuthenticationMethodXmlDSig "urn:ietf:rfc:3075" +#define lassoSamlAuthenticationMethodUnspecified "urn:oasis:names:tc:SAML:1.0:am:unspecified" /* ConfirmationMethods */ -LASSO_EXPORT_VAR const xmlChar lassoSamlConfirmationMethodArtifact01[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlConfirmationMethodBearer[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlConfirmationMethodHolderOfKey[]; -LASSO_EXPORT_VAR const xmlChar lassoSamlConfirmationMethodSenderVouches[]; +#define lassoSamlConfirmationMethodArtifact01 "urn:oasis:names:tc:SAML:1.0:cm:artifact-01" +#define lassoSamlConfirmationMethodBearer "urn:oasis:names:tc:SAML:1.0:cm:bearer" +#define lassoSamlConfirmationMethodHolderOfKey "urn:oasis:names:tc:SAML:1.0:cm:holder-of-key" +#define lassoSamlConfirmationMethodSenderVouches "urn:oasis:names:tc:SAML:1.0:cm:sender-vouches" /*****************************************************************************/ /* SOAP */ /*****************************************************************************/ /* prefix & href */ -LASSO_EXPORT_VAR const xmlChar lassoSoapEnvHRef[]; -LASSO_EXPORT_VAR const xmlChar lassoSoapEnvPrefix[]; +#define lassoSoapEnvHRef "http://schemas.xmlsoap.org/soap/envelope/" +#define lassoSoapEnvPrefix "soap-env" + -#ifdef __cplusplus -} -#endif /* __cplusplus */ #endif /* __LASSO_STRINGS_H__ */ |
