summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ustream-openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ustream-openssl.c b/ustream-openssl.c
index eb03dab..91bc4e8 100644
--- a/ustream-openssl.c
+++ b/ustream-openssl.c
@@ -49,7 +49,7 @@ __ustream_ssl_context_new(bool server)
return NULL;
SSL_CTX_set_verify(c, SSL_VERIFY_NONE, NULL);
-#ifndef OPENSSL_NO_ECDH
+#if !defined(OPENSSL_NO_ECDH) && !defined(CYASSL_OPENSSL_H_)
SSL_CTX_set_ecdh_auto(c, 1);
#endif
if (server)