projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ustream-ssl: Enable ECDHE with OpenSSL.
[project/ustream-ssl.git]
/
ustream-openssl.c
diff --git
a/ustream-openssl.c
b/ustream-openssl.c
index
83f6140
..
2faa855
100644
(file)
--- a/
ustream-openssl.c
+++ b/
ustream-openssl.c
@@
-49,6
+49,9
@@
__ustream_ssl_context_new(bool server)
return NULL;
SSL_CTX_set_verify(c, SSL_VERIFY_NONE, NULL);
+#ifndef OPENSSL_NO_ECDH
+ SSL_CTX_set_ecdh_auto(c, 1);
+#endif
SSL_CTX_set_quiet_shutdown(c, 1);
return (void *) c;