[gnutls-devel] GnuTLS | Use soname instead of file name in fipshmac sections (!1675)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Dec 5 04:23:57 CET 2022




Daiki Ueno commented on a discussion on lib/fipshmac.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1675#note_1195772919

> -		return EXIT_FAILURE;
> -
> -	ret = print_lib_dl(NETTLE_LIBRARY_SONAME, "nettle_aes_set_encrypt_key");
> -	if (ret < 0)
> -		return EXIT_FAILURE;
> -	
> -	ret = print_lib_dl(HOGWEED_LIBRARY_SONAME, "nettle_mpz_sizeinbase_256_u");
> -	if (ret < 0)
> -		return EXIT_FAILURE;
> -	
> -	ret = print_lib_dl(GMP_LIBRARY_SONAME, "__gmpz_init");
> -	if (ret < 0)
> -		return EXIT_FAILURE;
> -
> -	return EXIT_SUCCESS;
> +	return dl_iterate_phdr(callback, argc == 2 ? argv[1] : NULL);

Or perhaps we could simply fail at run-time if `dl_iterate_phdr` is not found and library integrity check is mandatory (e.g., the system is in FIPS enforcing mode and `GNUTLS_SKIP_FIPS_INTEGRITY_CHECKS` is not set).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1675#note_1195772919
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20221205/234a0582/attachment-0001.html>


More information about the Gnutls-devel mailing list