The GnuTLS library typically maintains binary and source code compatibility across versions. The releases that have the major version increased break binary compatibility but source compatibility is provided. This section lists exceptional cases where changes to existing code are required due to library changes.
GnuTLS 2.12.x is binary compatible with previous versions but changes the
gnutls_transport_set_lowat, which might cause breakage
in applications that relied on its default value be 1. Two fixes
gnutls_transport_set_lowat (session, 1);after gnutls_init.
selectto check for gnutls pending data, the function gnutls_record_check_pending has to be used to achieve the same functionality as described in Asynchronous operation.
GnuTLS 3.0.x is source compatible with previous versions except for the functions listed below.
|To replace its functionality the function gnutls_record_check_pending has to be used, as described in Asynchronous operation|
|They are replaced by the safer function gnutls_session_get_random|
|Replaced by the keying material exporters discussed in Deriving keys for other applications/protocols|
|Replaced by using the system’s errno facility or gnutls_transport_set_errno.|
|Replaced by gnutls_pubkey_verify_data2.|
|Replaced by gnutls_certificate_verify_peers2.|
|Removed. The key derivation function was never standardized.|
|Removed. Extension registration API is now internal to allow easier changes in the API.|
|Removed to allow updating the internal structures. Replaced by gnutls_certificate_get_issuer.|
|Removed. The inner application extensions were completely removed (they failed to be standardized).|
GnuTLS 3.1.x is source and binary compatible with GnuTLS 3.0.x releases. Few functions have been deprecated and are listed below.
|The function gnutls_pubkey_verify_hash2 is provided and is functionally equivalent and safer to use.|
|The function gnutls_pubkey_verify_data2 is provided and is functionally equivalent and safer to use.|
GnuTLS 3.2.x is source and binary compatible with GnuTLS 3.1.x releases. Few functions have been deprecated and are listed below.
|The function gnutls_privkey_sign_hash is equivalent
when the flag |
GnuTLS 3.3.x is source and binary compatible with GnuTLS 3.2.x releases; however there few changes in semantics which are listed below.
|No longer required. The library is initialized using a constructor.|
|No longer required. The library is deinitialized using a destructor.|
GnuTLS 3.4.x is source compatible with GnuTLS 3.3.x releases; however, several deprecated functions were removed, and are listed below.
|Priority string "NORMAL" has been modified||The following string emulates the 3.3.x behavior "NORMAL:+VERS-SSL3.0:+ARCFOUR-128:+DHE-DSS:+SIGN-DSA-SHA512:+SIGN-DSA-SHA256:+SIGN-DSA-SHA1"|
|No replacement; the library does not support the RSA-EXPORT ciphersuites.|
|No replacement; a similar function is gnutls_x509_crt_get_signature_algorithm.|
|No replacement; a similar function is gnutls_pubkey_get_preferred_hash_algorithm.|
|gnutls_privkey_sign_hash with the flag GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA|