summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2022-12-15 00:45:04 +0900
committerDaiki Ueno <ueno@gnu.org>2022-12-16 06:38:31 +0900
commitdab063fca2eecb9ff1db73234108315c5b713756 (patch)
treec174de31626640b360cd9114d6175e3919247b4e /src/cli.c
parent2b6b6f69c24b49131201925d86845f78c490aac5 (diff)
downloadgnutls-dab063fca2eecb9ff1db73234108315c5b713756.tar.gz
srp: provide stubs of public functions even if SRP is disabled
This adds stub definitions of public SRP functions even if SRP is disabled with --disable-srp-authentication, to preserve the ABI. Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli.c b/src/cli.c
index 7c031f1ec3..1af329fadc 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -1876,6 +1876,7 @@ int do_handshake(socket_st * socket)
return ret;
}
+#ifdef ENABLE_SRP
static int
srp_username_callback(gnutls_session_t session,
char **username, char **password)
@@ -1889,6 +1890,7 @@ srp_username_callback(gnutls_session_t session,
return 0;
}
+#endif
static int
psk_callback(gnutls_session_t session, char **username,