[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
Tue Dec 6 16:11:24 CET 2022




Zoltán Fridrich commented on a discussion on lib/fipshmac.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1675#note_1198318174

> -		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);

I changed lib/fips.c to use dl_iterate_phdr but I dont think it simplified the file too much. Also I am not sure if I have removed everything for dlopen/dlsym/dladdr from configure.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1675#note_1198318174
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/20221206/19e6537e/attachment.html>


More information about the Gnutls-devel mailing list