Fix warning with TLS 1.2 without RSA or ECDSA

This commit is contained in:
Manuel Pégourié-Gonnard 2014-06-24 15:18:11 +02:00
parent 8a4d571af8
commit 5bfd968e01

View file

@ -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;