summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeonix <ajeetsinghchahar2@gmail.com>2023-03-28 14:21:07 +0530
committerpeonix <ajeetsinghchahar2@gmail.com>2023-03-28 14:21:07 +0530
commita398ecfc297cdcdd8255106d234eb2d99bbc7525 (patch)
tree3f2f78bb0f57b1bd9161ebda0492ac8df8796cee
parent5bee87e19f70a9ac1339828cd1a1aa90282d2bfc (diff)
downloadgnutls-a398ecfc297cdcdd8255106d234eb2d99bbc7525.tar.gz
changes to keep backward compatibility
Signed-off-by: peonix <ajeetsinghchahar2@gmail.com>
-rw-r--r--lib/ext/ext_master_secret.h3
-rw-r--r--lib/state.h3
-rw-r--r--src/cli.c3
-rw-r--r--tests/status-request.c3
4 files changed, 12 insertions, 0 deletions
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 <hello_ext.h>
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;