From: peonix Date: Tue, 28 Mar 2023 08:51:07 +0000 (+0530) Subject: changes to keep backward compatibility X-Git-Tag: 3.8.1~25^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a398ecfc297cdcdd8255106d234eb2d99bbc7525;p=thirdparty%2Fgnutls.git changes to keep backward compatibility Signed-off-by: peonix --- diff --git a/lib/ext/ext_master_secret.h b/lib/ext/ext_master_secret.h index e99c97fc27..ad807b8469 100644 --- a/lib/ext/ext_master_secret.h +++ b/lib/ext/ext_master_secret.h @@ -23,6 +23,9 @@ #ifndef GNUTLS_LIB_EXT_EXT_MASTER_SECRET_H # define GNUTLS_LIB_EXT_EXT_MASTER_SECRET_H +/* Keep backward compatibility */ +# define GNUTLS_NO_EXTENSIONS GNUTLS_NO_DEFAULT_EXTENSIONS + # include extern const hello_ext_entry_st ext_mod_ext_master_secret; diff --git a/lib/state.h b/lib/state.h index 4519b41ec0..15d5ad6384 100644 --- a/lib/state.h +++ b/lib/state.h @@ -113,4 +113,7 @@ _gnutls_PRF(gnutls_session_t session, # define DEFAULT_CERT_TYPE GNUTLS_CRT_X509 +/* Keep backward compatibility */ +# define GNUTLS_NO_EXTENSIONS GNUTLS_NO_DEFAULT_EXTENSIONS + #endif /* GNUTLS_LIB_STATE_H */ diff --git a/src/cli.c b/src/cli.c index f1eda4680f..08dddb08f2 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1637,6 +1637,9 @@ void print_priority_list(void) return; } +/* Keeps backward compatibility */ +#define GNUTLS_NO_EXTENSIONS GNUTLS_NO_DEFAULT_EXTENSIONS + static void cmd_parser(int argc, char **argv) { char *rest = NULL; diff --git a/tests/status-request.c b/tests/status-request.c index 66057a35db..feb3530e17 100644 --- a/tests/status-request.c +++ b/tests/status-request.c @@ -89,6 +89,9 @@ static int status_func(gnutls_session_t session, void *ptr, # define MAX_BUF 1024 +/* Keep backward compatibility */ +# define GNUTLS_NO_EXTENSIONS GNUTLS_NO_DEFAULT_EXTENSIONS + static void client(int fd, const char *prio) { int ret;