Fix a few things that broke with RSA compiled out
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index c19536b..774cb47 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -2231,7 +2231,8 @@
*/
#if !defined(POLARSSL_KEY_EXCHANGE_RSA_ENABLED) && \
!defined(POLARSSL_KEY_EXCHANGE_DHE_RSA_ENABLED) && \
- !defined(POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED)
+ !defined(POLARSSL_KEY_EXCHANGE_ECDHE_RSA_ENABLED) && \
+ !defined(POLARSSL_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED)
int ssl_write_certificate( ssl_context *ssl )
{
int ret = POLARSSL_ERR_SSL_FEATURE_UNAVAILABLE;
@@ -2247,6 +2248,7 @@
return( 0 );
}
+ SSL_DEBUG_MSG( 1, ( "should not happen" ) );
return( ret );
}
@@ -2265,6 +2267,7 @@
return( 0 );
}
+ SSL_DEBUG_MSG( 1, ( "should not happen" ) );
return( ret );
}
#else