From e13598de344aa011bfb4537716b0dea6e0e6f566 Mon Sep 17 00:00:00 2001 From: Valery Febvre Date: Thu, 5 Aug 2004 15:56:30 +0000 Subject: Replaced a lot of wrong issueInstance words by issueInstant Renamed 3 methods: lasso_saml_assertion_set_issueInstant(), lasso_samlp_request_abstract_set_issueInstant(), lasso_samlp_response_abstract_set_issueInstant() --- lasso/Attic/protocols/artifact.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'lasso/Attic/protocols/artifact.c') diff --git a/lasso/Attic/protocols/artifact.c b/lasso/Attic/protocols/artifact.c index ba8f424a..ee49ca90 100644 --- a/lasso/Attic/protocols/artifact.c +++ b/lasso/Attic/protocols/artifact.c @@ -107,10 +107,10 @@ lasso_artifact_get_byteCode(LassoArtifact *artifact, } xmlChar* -lasso_artifact_get_identityProviderSuccinctID(LassoArtifact *artifact, - GError **err) +lasso_artifact_get_b64IdentityProviderSuccinctID(LassoArtifact *artifact, + GError **err) { - xmlChar *b64_identityProviderSuccinctID, *identityProviderSuccinctID; + xmlChar *b64_identityProviderSuccinctID; GError *tmp_err = NULL; b64_identityProviderSuccinctID = lasso_node_get_child_content(LASSO_NODE(artifact), @@ -118,14 +118,9 @@ lasso_artifact_get_identityProviderSuccinctID(LassoArtifact *artifact, NULL, &tmp_err); if (b64_identityProviderSuccinctID == NULL) { g_propagate_error (err, tmp_err); - return(NULL); } - identityProviderSuccinctID = xmlMalloc(20+1); - xmlSecBase64Decode(b64_identityProviderSuccinctID, identityProviderSuccinctID, 21); - xmlFree(b64_identityProviderSuccinctID); - - return (identityProviderSuccinctID); + return(b64_identityProviderSuccinctID); } xmlChar* @@ -249,7 +244,7 @@ lasso_artifact_new_from_query(const xmlChar *query) g_datalist_clear(&gd); byteCode = (gchar *) g_new0(gchar, 5+1); - identityProviderSuccinctID = (gchar *) g_new0(gchar, 20+1); + identityProviderSuccinctID = (gchar *) g_new0(gchar, 20); assertionHandle = (gchar *) g_new0(gchar, 20+1); ret = lasso_artifact_split_samlArt((gchar*)b64_samlArt, byteCode, identityProviderSuccinctID, @@ -287,7 +282,7 @@ lasso_artifact_new_from_lares(const xmlChar *lares, gint ret; byteCode = (gchar *) g_new0(gchar, 5+1); - identityProviderSuccinctID = (gchar *) g_new0(gchar, 20+1); + identityProviderSuccinctID = (gchar *) g_new0(gchar, 20); assertionHandle = (gchar *) g_new0(gchar, 20+1); ret = lasso_artifact_split_samlArt((gchar*)lares, byteCode, identityProviderSuccinctID, -- cgit