Keep ABI stability (#56883)

The following functions where part of the experimental ID-WSF support
recently removed but where incorrectly included in the official ABI, so we
restore dummy versions of them (they do nothing or return NULL):
- lasso_get_prefix_for_dst_service_href
- lasso_get_prefix_for_idwsf2_dst_service_href
- lasso_register_dst_service
- lasso_register_idwsf2_dst_service
This commit is contained in:
Benjamin Dauvergne 2021-09-13 11:20:52 +02:00
parent aab962cb69
commit d80357e226
4 changed files with 31 additions and 0 deletions

View File

@ -67,6 +67,8 @@ liblasso.so.3 liblasso3 #MINVER#
lasso_flag_strict_checking@Base 2.3.5
lasso_flag_thin_sessions@Base 2.5.0
lasso_flag_verify_signature@Base 2.3.5
lasso_get_prefix_for_dst_service_href@Base 2.3.5
lasso_get_prefix_for_idwsf2_dst_service_href@Base 2.3.5
lasso_get_default_key_encryption_method@Base 2.8.0
lasso_get_default_signature_method@Base 2.8.0
lasso_identity_destroy@Base 2.3.5
@ -324,6 +326,8 @@ liblasso.so.3 liblasso3 #MINVER#
lasso_provider_set_server_signing_key@Base 2.5.0
lasso_provider_verify_signature@Base 2.5.0
lasso_provider_verify_single_node_signature@Base 2.3.5
lasso_register_dst_service@Base 2.3.5
lasso_register_idwsf2_dst_service@Base 2.3.5
lasso_registry_default_add_direct_mapping@Base 2.3.5
lasso_registry_default_add_functional_mapping@Base 2.3.5
lasso_registry_default_get_mapping@Base 2.3.5

View File

@ -67,6 +67,8 @@ liblasso.so.3 liblasso3 #MINVER#
lasso_flag_strict_checking@Base 2.3.5
lasso_flag_thin_sessions@Base 2.5.0
lasso_flag_verify_signature@Base 2.3.5
lasso_get_prefix_for_dst_service_href@Base 2.3.5
lasso_get_prefix_for_idwsf2_dst_service_href@Base 2.3.5
lasso_get_default_key_encryption_method@Base 2.8.0
lasso_get_default_signature_method@Base 2.8.0
lasso_identity_destroy@Base 2.3.5
@ -324,6 +326,8 @@ liblasso.so.3 liblasso3 #MINVER#
lasso_provider_set_server_signing_key@Base 2.5.0
lasso_provider_verify_signature@Base 2.5.0
lasso_provider_verify_single_node_signature@Base 2.3.5
lasso_register_dst_service@Base 2.3.5
lasso_register_idwsf2_dst_service@Base 2.3.5
lasso_registry_default_add_direct_mapping@Base 2.3.5
lasso_registry_default_add_functional_mapping@Base 2.3.5
lasso_registry_default_get_mapping@Base 2.3.5

View File

@ -438,3 +438,20 @@ static void lasso_flag_parse_environment_variable() {
} while ((token = strtok_r(NULL, delim, &save_ptr)) != NULL);
}
}
/* Deprecated functions, kept only to maintain the ABI and the SONAME */
void lasso_register_dst_service(const char *prefix, const char *href)
{
}
char* lasso_get_prefix_for_dst_service_href(const char *href)
{
return NULL;
}
void lasso_register_idwsf2_dst_service(const gchar *prefix, const gchar *href)
{
}
gchar* lasso_get_prefix_for_idwsf2_dst_service_href(const gchar *href)
{
return NULL;
}

View File

@ -72,6 +72,12 @@ LASSO_EXPORT int lasso_check_version(
LASSO_EXPORT void lasso_set_flag(char *flag);
/* Deprecated functions, kept only to maintain the ABI and the SONAME */
LASSO_EXPORT void lasso_register_dst_service(const char *prefix, const char *href);
LASSO_EXPORT char* lasso_get_prefix_for_dst_service_href(const char *href);
LASSO_EXPORT void lasso_register_idwsf2_dst_service(const gchar *prefix, const gchar *href);
LASSO_EXPORT gchar* lasso_get_prefix_for_idwsf2_dst_service_href(const gchar *href);
#ifdef __cplusplus
}
#endif /* __cplusplus */