Conditional symbol use in Fedora
I have some tooling I can use to scan the entirety of a Fedora/CentOS/RHEL distro for specific symbols, and used that to take a look at which symbols that depend on specific configure flags (e.g., DSA_do_sign is only available when OpenSSL is configured without no-dsa) are actually used in Fedora.
By the nature of things, this of course only finds symbols Fedora's OpenSSL actually includes — all others are obviously unused. This is also based on analysis of ELF binaries, so anything that goes through FFI, dlopen(), or a language-specific wrapper doesn't show up.
Still, I think this is an interesting data point on which optional OpenSSL functionality is actually used out there, so I figured I'd provide it.
Results are at https://clang.fedorapeople.org/f46-openssl-conditional-symbols/. A machine-readable form (a bunch of JSON files) is at https://clang.fedorapeople.org/f46-openssl-conditional-symbols/results.tar.xz.
I can also run this for symbols that are marked deprecated in OpenSSL, if there's interest in that?
See also some previous discussion of compile-time available symbols at https://openssl-communities.org/d/hT3LIM4H/complexity-of-compile-time-disableables-makes-it-hard-to-contribute-code-to-openssl.
@Tomas Mraz Sure, here you go:
HTML: https://clang.fedorapeople.org/f46-openssl-deprecated-symbols/
JSON tarball: https://clang.fedorapeople.org/f46-openssl-deprecated-symbols/results.tar.xz
and the list of deprecated symbols: https://clang.fedorapeople.org/f46-openssl-deprecated-symbols/deprecated_symbols.json
Sure that would be very useful to get an impression of what we could safely remove in 5.0 without any real impact. I.e., producing a list of symbols that are deprecated and not referenced from anything in Fedora.