diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2004-07-15 10:42:38 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2004-07-15 10:42:38 +0000 |
| commit | 2b209ad4bd58e1f9480a671bbc82e36e3950d6c1 (patch) | |
| tree | b03cc3cf3b584d8a07150a245c2f73a0a707b9f3 | |
| parent | 4c6de60cca9603de5fd58655e0e8bc1a01c830ae (diff) | |
| download | lasso-2b209ad4bd58e1f9480a671bbc82e36e3950d6c1.tar.gz lasso-2b209ad4bd58e1f9480a671bbc82e36e3950d6c1.tar.xz lasso-2b209ad4bd58e1f9480a671bbc82e36e3950d6c1.zip | |
replaced C++ // comments with C /* */ comments before we fall on a pre-C99
compiler.
| -rw-r--r-- | lasso/Attic/protocols/logout_response.c | 6 | ||||
| -rw-r--r-- | lasso/Attic/protocols/name_identifier_mapping_response.c | 6 | ||||
| -rw-r--r-- | lasso/Attic/protocols/register_name_identifier_response.c | 6 | ||||
| -rw-r--r-- | lasso/id-ff/login.c | 10 | ||||
| -rw-r--r-- | lasso/id-ff/server.c | 2 | ||||
| -rw-r--r-- | lasso/lasso.c | 6 | ||||
| -rw-r--r-- | lasso/xml/lib_authn_request.c | 6 | ||||
| -rw-r--r-- | lasso/xml/lib_authn_response.c | 2 | ||||
| -rw-r--r-- | lasso/xml/lib_federation_termination_notification.c | 2 | ||||
| -rw-r--r-- | lasso/xml/lib_logout_request.c | 2 | ||||
| -rw-r--r-- | lasso/xml/lib_name_identifier_mapping_request.c | 2 | ||||
| -rw-r--r-- | lasso/xml/lib_name_identifier_mapping_response.c | 2 | ||||
| -rw-r--r-- | lasso/xml/lib_register_name_identifier_request.c | 2 | ||||
| -rw-r--r-- | lasso/xml/lib_status_response.c | 2 | ||||
| -rw-r--r-- | lasso/xml/saml_advice.c | 2 | ||||
| -rw-r--r-- | lasso/xml/saml_authentication_statement.c | 2 | ||||
| -rw-r--r-- | lasso/xml/samlp_response.c | 2 | ||||
| -rw-r--r-- | lasso/xml/tools.c | 12 | ||||
| -rw-r--r-- | lasso/xml/xml.c | 6 | ||||
| -rw-r--r-- | python/wrap_objs.c | 2 |
20 files changed, 41 insertions, 41 deletions
diff --git a/lasso/Attic/protocols/logout_response.c b/lasso/Attic/protocols/logout_response.c index 6879990e..facf9d8c 100644 --- a/lasso/Attic/protocols/logout_response.c +++ b/lasso/Attic/protocols/logout_response.c @@ -153,7 +153,7 @@ lasso_logout_response_new_from_dump(const xmlChar *buffer) return (response); } -// build a LogoutResponse from a query form LogoutResponse +/* build a LogoutResponse from a query form LogoutResponse */ LassoNode * lasso_logout_response_new_from_query(const xmlChar *query) { @@ -203,7 +203,7 @@ lasso_logout_response_new_from_query(const xmlChar *query) return(response); } -// build a LogoutResponse from a query form LogoutRequest +/* build a LogoutResponse from a query form LogoutRequest */ LassoNode * lasso_logout_response_new_from_request_query(const xmlChar *query, const xmlChar *providerID, @@ -221,7 +221,7 @@ lasso_logout_response_new_from_request_query(const xmlChar *query, return(response); } -// build a LogoutRespose from a soap form LogoutRequest +/* build a LogoutRespose from a soap form LogoutRequest */ LassoNode * lasso_logout_response_new_from_request_soap(const xmlChar *buffer, const xmlChar *providerID, diff --git a/lasso/Attic/protocols/name_identifier_mapping_response.c b/lasso/Attic/protocols/name_identifier_mapping_response.c index 235faa79..8f1a7e5e 100644 --- a/lasso/Attic/protocols/name_identifier_mapping_response.c +++ b/lasso/Attic/protocols/name_identifier_mapping_response.c @@ -135,7 +135,7 @@ lasso_name_identifier_mapping_response_new_from_dump(const xmlChar *buffer) return (response); } -// build a NameIdentifierMappingResponse from a query form NameIdentifierMappingResponse +/* build a NameIdentifierMappingResponse from a query form NameIdentifierMappingResponse */ LassoNode * lasso_name_identifier_mapping_response_new_from_query(const xmlChar *query) { @@ -181,7 +181,7 @@ lasso_name_identifier_mapping_response_new_from_query(const xmlChar *query) return(response); } -// build a NameIdentifierMappingRespose from a soap form NameIdentifierMappingRequest +/* build a NameIdentifierMappingRespose from a soap form NameIdentifierMappingRequest */ LassoNode * lasso_name_identifier_mapping_response_new_from_request_soap(const xmlChar *buffer, const xmlChar *providerID, @@ -224,7 +224,7 @@ lasso_name_identifier_mapping_response_new_from_soap(const xmlChar *buffer) return(response); } -// build a NameIdentifierMappingResponse from a query form NameIdentifierMappingRequest +/* build a NameIdentifierMappingResponse from a query form NameIdentifierMappingRequest */ LassoNode * lasso_name_identifier_mapping_response_new_from_request_query(const xmlChar *query, const xmlChar *providerID, diff --git a/lasso/Attic/protocols/register_name_identifier_response.c b/lasso/Attic/protocols/register_name_identifier_response.c index 2ecdda30..05b5df4d 100644 --- a/lasso/Attic/protocols/register_name_identifier_response.c +++ b/lasso/Attic/protocols/register_name_identifier_response.c @@ -142,7 +142,7 @@ lasso_register_name_identifier_response_new_from_dump(const xmlChar *buffer) return (response); } -// build a RegisterNameIdentifierResponse from a query form RegisterNameIdentifierResponse +/* build a RegisterNameIdentifierResponse from a query form RegisterNameIdentifierResponse */ LassoNode * lasso_register_name_identifier_response_new_from_query(const xmlChar *query) { @@ -192,7 +192,7 @@ lasso_register_name_identifier_response_new_from_query(const xmlChar *query) return(response); } -// build a RegisterNameIdentifierResponse from a query form RegisterNameIdentifierRequest +/* build a RegisterNameIdentifierResponse from a query form RegisterNameIdentifierRequest */ LassoNode * lasso_register_name_identifier_response_new_from_request_query(const xmlChar *query, const xmlChar *providerID, @@ -210,7 +210,7 @@ lasso_register_name_identifier_response_new_from_request_query(const xmlChar *qu return(response); } -// build a RegisterNameIdentifierRespose from a soap form RegisterNameIdentifierRequest +/* build a RegisterNameIdentifierRespose from a soap form RegisterNameIdentifierRequest */ LassoNode * lasso_register_name_identifier_response_new_from_request_soap(const xmlChar *buffer, const xmlChar *providerID, diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c index ccc87c9c..6fc16573 100644 --- a/lasso/id-ff/login.c +++ b/lasso/id-ff/login.c @@ -74,7 +74,7 @@ lasso_login_process_federation(LassoLogin *login) } } else if (xmlStrEqual(nameIDPolicy, lassoLibNameIDPolicyTypeOneTime)) { - // TODO + /* TODO */ } xmlFree(nameIDPolicy); @@ -233,7 +233,7 @@ lasso_login_build_artifact_msg(LassoLogin *login, } /* save response dump */ login->response_dump = lasso_node_export_to_soap(LASSO_PROFILE_CONTEXT(login)->response); - //segfault ??? debug(DEBUG, "SOAP enveloped Samlp:response = %s\n", LASSO_LOGIN(login)->response_dump); + /* segfault ??? debug(DEBUG, "SOAP enveloped Samlp:response = %s\n", LASSO_LOGIN(login)->response_dump); */ providerID = lasso_provider_get_providerID(LASSO_PROVIDER(LASSO_PROFILE_CONTEXT(login)->server)); remote_provider = lasso_server_get_provider(LASSO_PROFILE_CONTEXT(login)->server, @@ -538,11 +538,11 @@ lasso_login_init_from_authn_request_msg(LassoLogin *login, /* Modify StatusCode if signature is not OK */ if (signature_status == 0 || signature_status == 2) { switch (signature_status) { - case 0: // Invalid Signature + case 0: /* Invalid Signature */ lasso_profile_context_set_response_status(LASSO_PROFILE_CONTEXT(login), lassoLibStatusCodeInvalidSignature); break; - case 2: // Unsigned AuthnRequest + case 2: /* Unsigned AuthnRequest */ lasso_profile_context_set_response_status(LASSO_PROFILE_CONTEXT(login), lassoLibStatusCodeUnsignedAuthnRequest); break; @@ -638,7 +638,7 @@ lasso_login_process_request_msg(LassoLogin *login, node = lasso_node_new_from_dump(request_msg); - // TODO : rebuild request in login->request and set login->request_type + /* TODO : rebuild request in login->request and set login->request_type */ login->assertionArtifact = lasso_node_get_child_content(node, "AssertionArtifact", lassoSamlProtocolHRef); lasso_node_destroy(node); diff --git a/lasso/id-ff/server.c b/lasso/id-ff/server.c index 131cb2f1..e09fd520 100644 --- a/lasso/id-ff/server.c +++ b/lasso/id-ff/server.c @@ -198,7 +198,7 @@ lasso_server_class_init(LassoServerClass *class) { parent_class = g_type_class_peek_parent(class); /* override parent class methods */ - //gobject_class->dispose = (void *)lasso_server_dispose; + /* object_class->dispose = (void *)lasso_server_dispose; */ gobject_class->finalize = (void *)lasso_server_finalize; } diff --git a/lasso/lasso.c b/lasso/lasso.c index a1877f54..686eb0d5 100644 --- a/lasso/lasso.c +++ b/lasso/lasso.c @@ -37,9 +37,9 @@ int lasso_init() /* Init libxml and libxslt libraries */ xmlInitParser(); - //LIBXML_TEST_VERSION - // xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; - //xmlSubstituteEntitiesDefault(1); + /*LIBXML_TEST_VERSION*/ + /* xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; */ + /* xmlSubstituteEntitiesDefault(1); */ /* Init xmlsec library */ if(xmlSecInit() < 0) { diff --git a/lasso/xml/lib_authn_request.c b/lasso/xml/lib_authn_request.c index ae2aaa8e..e53647f6 100644 --- a/lasso/xml/lib_authn_request.c +++ b/lasso/xml/lib_authn_request.c @@ -87,7 +87,7 @@ lasso_lib_authn_request_set_affiliationID(LassoLibAuthnRequest *node, const xmlChar *affiliationID) { g_assert(LASSO_IS_LIB_AUTHN_REQUEST(node)); g_assert(affiliationID != NULL); - // FIXME : affiliationID lenght SHOULD be <= 1024 + /* FIXME : affiliationID lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "AffiliationID", affiliationID, FALSE); @@ -182,7 +182,7 @@ lasso_lib_authn_request_set_providerID(LassoLibAuthnRequest *node, { g_assert(LASSO_IS_LIB_AUTHN_REQUEST(node)); g_assert(providerID != NULL); - // FIXME : providerID lenght SHOULD be <= 1024 + /* FIXME : providerID lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); @@ -193,7 +193,7 @@ lasso_lib_authn_request_set_relayState(LassoLibAuthnRequest *node, const xmlChar *relayState) { g_assert(LASSO_IS_LIB_AUTHN_REQUEST(node)); g_assert(relayState != NULL); - // FIXME : RelayState lenght SHOULD be <= 80 + /* FIXME : RelayState lenght SHOULD be <= 80 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "RelayState", relayState, FALSE); diff --git a/lasso/xml/lib_authn_response.c b/lasso/xml/lib_authn_response.c index 0ce5656a..976d8422 100644 --- a/lasso/xml/lib_authn_response.c +++ b/lasso/xml/lib_authn_response.c @@ -73,7 +73,7 @@ lasso_lib_authn_response_set_providerID(LassoLibAuthnResponse *node, { g_assert(LASSO_IS_LIB_AUTHN_RESPONSE(node)); g_assert(providerID != NULL); - // FIXME : providerID lenght SHOULD be <= 1024 + /* FIXME : providerID lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); diff --git a/lasso/xml/lib_federation_termination_notification.c b/lasso/xml/lib_federation_termination_notification.c index c5d30216..d7d2d6b1 100644 --- a/lasso/xml/lib_federation_termination_notification.c +++ b/lasso/xml/lib_federation_termination_notification.c @@ -74,7 +74,7 @@ lasso_lib_federation_termination_notification_set_providerID(LassoLibFederationT { g_assert(LASSO_IS_LIB_FEDERATION_TERMINATION_NOTIFICATION(node)); g_assert(providerID != NULL); - // FIXME : providerId lenght SHOULD be <= 1024 + /* FIXME : providerId lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); diff --git a/lasso/xml/lib_logout_request.c b/lasso/xml/lib_logout_request.c index e4b8d568..9bc394a2 100644 --- a/lasso/xml/lib_logout_request.c +++ b/lasso/xml/lib_logout_request.c @@ -85,7 +85,7 @@ lasso_lib_logout_request_set_providerID(LassoLibLogoutRequest *node, { g_assert(LASSO_IS_LIB_LOGOUT_REQUEST(node)); g_assert(providerID != NULL); - // FIXME : providerID lenght SHOULD be <= 1024 + /* FIXME : providerID lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); diff --git a/lasso/xml/lib_name_identifier_mapping_request.c b/lasso/xml/lib_name_identifier_mapping_request.c index b69662a2..cc18d720 100644 --- a/lasso/xml/lib_name_identifier_mapping_request.c +++ b/lasso/xml/lib_name_identifier_mapping_request.c @@ -73,7 +73,7 @@ lasso_lib_name_identifier_mapping_request_set_providerID(LassoLibNameIdentifierM { g_assert(LASSO_IS_LIB_NAME_IDENTIFIER_MAPPING_REQUEST(node)); g_assert(providerID != NULL); - // FIXME : providerId lenght SHOULD be <= 1024 + /* FIXME : providerId lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); diff --git a/lasso/xml/lib_name_identifier_mapping_response.c b/lasso/xml/lib_name_identifier_mapping_response.c index 5f13456d..d693f6c0 100644 --- a/lasso/xml/lib_name_identifier_mapping_response.c +++ b/lasso/xml/lib_name_identifier_mapping_response.c @@ -65,7 +65,7 @@ lasso_lib_name_identifier_mapping_response_set_providerID(LassoLibNameIdentifier { g_assert(LASSO_IS_LIB_NAME_IDENTIFIER_MAPPING_RESPONSE(node)); g_assert(providerID != NULL); - // FIXME : providerID lenght SHOULD be <= 1024 + /* FIXME : providerID lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); diff --git a/lasso/xml/lib_register_name_identifier_request.c b/lasso/xml/lib_register_name_identifier_request.c index c0e92893..d1da630e 100644 --- a/lasso/xml/lib_register_name_identifier_request.c +++ b/lasso/xml/lib_register_name_identifier_request.c @@ -94,7 +94,7 @@ lasso_lib_register_name_identifier_request_set_providerID(LassoLibRegisterNameId { g_assert(LASSO_IS_LIB_REGISTER_NAME_IDENTIFIER_REQUEST(node)); g_assert(providerID != NULL); - // FIXME : providerID lenght SHOULD be <= 1024 + /* FIXME : providerID lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); diff --git a/lasso/xml/lib_status_response.c b/lasso/xml/lib_status_response.c index 081db997..fc41fce6 100644 --- a/lasso/xml/lib_status_response.c +++ b/lasso/xml/lib_status_response.c @@ -62,7 +62,7 @@ lasso_lib_status_response_set_providerID(LassoLibStatusResponse *node, { g_assert(LASSO_IS_LIB_STATUS_RESPONSE(node)); g_assert(providerID != NULL); - // FIXME : providerID lenght SHOULD be <= 1024 + /* FIXME : providerID lenght SHOULD be <= 1024 */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->new_child(LASSO_NODE (node), "ProviderID", providerID, FALSE); diff --git a/lasso/xml/saml_advice.c b/lasso/xml/saml_advice.c index a421a61b..15ddbac2 100644 --- a/lasso/xml/saml_advice.c +++ b/lasso/xml/saml_advice.c @@ -65,7 +65,7 @@ lasso_saml_advice_add_assertion(LassoSamlAdvice *node, gpointer *assertion) { g_assert(LASSO_IS_SAML_ADVICE(node)); - //g_assert(LASSO_IS_SAML_ASSERTION(assertion)); + /* g_assert(LASSO_IS_SAML_ASSERTION(assertion)); */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->add_child(LASSO_NODE (node), LASSO_NODE (assertion), TRUE); diff --git a/lasso/xml/saml_authentication_statement.c b/lasso/xml/saml_authentication_statement.c index f6d2531b..be614682 100644 --- a/lasso/xml/saml_authentication_statement.c +++ b/lasso/xml/saml_authentication_statement.c @@ -99,7 +99,7 @@ lasso_saml_authentication_statement_instance_init(LassoSamlAuthenticationStateme { LassoNodeClass *class = LASSO_NODE_GET_CLASS(LASSO_NODE(node)); - // namespace herited from SubjectStatementAbstract -> StatementAbstract + /* namespace herited from SubjectStatementAbstract -> StatementAbstract */ class->set_name(LASSO_NODE(node), "AuthenticationStatement"); } diff --git a/lasso/xml/samlp_response.c b/lasso/xml/samlp_response.c index 89855c90..08483645 100644 --- a/lasso/xml/samlp_response.c +++ b/lasso/xml/samlp_response.c @@ -50,7 +50,7 @@ lasso_samlp_response_add_assertion(LassoSamlpResponse *node, gpointer assertion) { g_assert(LASSO_IS_SAMLP_RESPONSE(node)); - //g_assert(LASSO_IS_SAML_ASSERTION(assertion)); + /* g_assert(LASSO_IS_SAML_ASSERTION(assertion)); */ LassoNodeClass *class = LASSO_NODE_GET_CLASS(node); class->add_child(LASSO_NODE (node), LASSO_NODE(assertion), TRUE); diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index f060a085..b8064b14 100644 --- a/lasso/xml/tools.c +++ b/lasso/xml/tools.c @@ -223,7 +223,7 @@ lasso_query_to_dict(const gchar *query) while (sa1[i++] != NULL) { /* split of key=value to get (key, value) sub-strings */ sa2 = g_strsplit(sa1[i-1], "=", 0); - //printf("%s => ", sa2[0]); + /* printf("%s => ", sa2[0]); */ /* split of value to get mutli values sub-strings separated by SPACE char */ str_unescaped = lasso_str_unescape(sa2[1]); sa3 = g_strsplit(str_unescaped, " ", 0); @@ -232,9 +232,9 @@ lasso_query_to_dict(const gchar *query) j = 0; while (sa3[j++] != NULL) { g_ptr_array_add(gpa, g_strdup(sa3[j-1])); - //printf("%s, ", sa3[j-1]); + /* printf("%s, ", sa3[j-1]); */ } - //printf("\n"); + /* printf("\n"); */ /* add key => values in dict */ g_datalist_set_data_full(&gd, sa2[0], gpa, gdata_query_to_dict_destroy_notify); @@ -292,7 +292,7 @@ lasso_query_verify_signature(const gchar *query, xmlFree(str_unescaped); g_strfreev(str_split); - //xmlDocDump(stdout, doc); + /*xmlDocDump(stdout, doc);*/ /* find start node */ sigNode = xmlSecFindNode(xmlDocGetRootElement(doc), @@ -372,7 +372,7 @@ lasso_str_hash(xmlChar *str, xmlSecNodeDigestValue, xmlSecDSigNs)); i = xmlSecBase64Decode(b64_digest, digest, 21); - //printf("Decoded string %s lenght is %d\n", digest, i); + /* printf("Decoded string %s lenght is %d\n", digest, i); */ xmlFree(b64_digest); xmlFreeDoc(doc); /* value returned must be xmlFree() */ @@ -482,7 +482,7 @@ lasso_str_sign(xmlChar *str, goto done; } - //xmlDocDump(stdout, doc); + /* xmlDocDump(stdout, doc); */ xmlSecDSigCtxDestroy(dsigCtx); /* doc must be freed be caller */ return (doc); diff --git a/lasso/xml/xml.c b/lasso/xml/xml.c index 4ee3dd65..1b37bd64 100644 --- a/lasso/xml/xml.c +++ b/lasso/xml/xml.c @@ -1083,7 +1083,7 @@ lasso_node_impl_new_child(LassoNode *node, const xmlChar *content, gboolean unbounded) { - //LassoNode *old_child = NULL; + /* LassoNode *old_child = NULL; */ xmlNodePtr old_child = NULL; xmlChar *href = NULL; @@ -1097,11 +1097,11 @@ lasso_node_impl_new_child(LassoNode *node, } old_child = xmlSecFindNode(node->private->node, name, href); - //old_child = lasso_node_get_child(node, name); + /* old_child = lasso_node_get_child(node, name); */ } if (!unbounded && old_child != NULL) { - //xmlNodeSetContent(old_child->private->node, content); + /* xmlNodeSetContent(old_child->private->node, content); */ xmlNodeSetContent(old_child, content); } else { diff --git a/python/wrap_objs.c b/python/wrap_objs.c index 793cb66c..74d136b1 100644 --- a/python/wrap_objs.c +++ b/python/wrap_objs.c @@ -79,7 +79,7 @@ PyObject *xmlCharPtr_wrap(xmlChar *str) { } ret = PyString_FromString((char *) str); /* deallocation */ - //xmlFree(str); + /* xmlFree(str); */ return (ret); } |
