[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:26:20 CET 2022
Daiki Ueno started a new discussion on lib/fipshmac.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1675#note_1195773632
> - 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);
By the way, it's also tempting to simplify `lib/fips.c` using `dl_iterate_phdr`; then we could omit the `dlopen`/`dlsym`/`dladdr` dance and soname check in configure altogether.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1675#note_1195773632
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/02141444/attachment.html>
More information about the Gnutls-devel
mailing list