commit | 5bfd968e01f6d4a8db9827e4fb9ec824c750f6fb | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Jun 24 15:18:11 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Tue Jun 24 15:18:11 2014 +0200 |
tree | 84e5275ffa1c09365f080a7baf36c1c6f3b8ecb0 | |
parent | 8a4d571af8f2e98ff652d93738a5fa6c07c1a437 [diff] [blame] |
Fix warning with TLS 1.2 without RSA or ECDSA
diff --git a/library/ssl_cli.c b/library/ssl_cli.c index fda9ebf..9903954 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c
@@ -148,8 +148,10 @@ 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;