From 5bfd968e01f6d4a8db9827e4fb9ec824c750f6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 24 Jun 2014 15:18:11 +0200 Subject: [PATCH] Fix warning with TLS 1.2 without RSA or ECDSA --- library/ssl_cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index fda9ebf51..99039542c 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -148,8 +148,10 @@ static void ssl_write_signature_algorithms_ext( ssl_context *ssl, size_t *olen ) { unsigned char *p = buf; - unsigned char *sig_alg_list = buf + 6; size_t sig_alg_len = 0; +#if defined(POLARSSL_RSA_C) || defined(POLARSSL_ECDSA_C) + unsigned char *sig_alg_list = buf + 6; +#endif *olen = 0;