You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
663 B

  1. --- a/src/ssli_openssl.c
  2. +++ b/src/ssli_openssl.c
  3. @@ -46,6 +46,9 @@
  4. #include <openssl/bn.h>
  5. #include <openssl/err.h>
  6. #include <openssl/safestack.h>
  7. +#ifndef OPENSSL_NO_EC
  8. +#include <openssl/ec.h>
  9. +#endif
  10. static X509 *x509;
  11. static RSA *rsa;
  12. static SSL_CTX *context;
  13. @@ -253,9 +256,11 @@ void SSLi_init(void)
  14. SSL_CTX_set_options(context, SSL_OP_CIPHER_SERVER_PREFERENCE);
  15. SSL_CTX_set_cipher_list(context, ciphers);
  16. +#ifndef OPENSSL_NO_EC
  17. EC_KEY *ecdhkey = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
  18. SSL_CTX_set_tmp_ecdh(context, ecdhkey);
  19. EC_KEY_free(ecdhkey);
  20. +#endif
  21. char const * sslCAPath = getStrConf(CAPATH);
  22. if(sslCAPath != NULL)