[gnutls-devel] GnuTLS | ABI break due to adding const qualifiers to some libgnutlsxx.so methods (#1318)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Jan 30 14:50:39 CET 2022



Seppo Yli-Olli created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1318



## Description of problem:
Apparently through https://gitlab.com/gnutls/gnutls/-/commit/67cab96c1d59fec2e2b85ee054ec0015195cc35c methods db_check_entry and set_credentials gained const qualifiers to parameters. While this is safe in C API, it apparently is not in C++ API (there is some notes for this in https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B, C++ ABI compat is a *lot* more complex). However, soname was kept. It looks like soname should probably have been bumped with this const qualifier change since it broke ABI compatibility.

## Version of gnutls used:
3.7.2

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
freedesktop-sdk

## How reproducible:

Steps to Reproduce:

Run ABI checker on project from 3.6.16 to 3.7.2

## Actual results:
Const parameter changes in C++ ABI

## Expected results:
No const parameter changes in C++ ABI

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1318
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/20220130/a0409ef1/attachment.html>


More information about the Gnutls-devel mailing list