That's why Debian Stable and RHEL exist. Security patches don't break the API.
shouldn't
When the patched library is not part of Debian Stable or RHEL's repositories (for example, if you require features from a release less than a year old) all bets of API stability are off.
OpenSSL and libc are not the only libraries which are patched for security that people use.