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.

53 lines
1.6 KiB

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -397,7 +397,7 @@ AC_ARG_WITH([cyassl],
  4. [AS_HELP_STRING([--with-cyassl], [enable support for cyassl])],[],[with_cyassl=no])
  5. AS_IF([test x"$with_cyassl" != xno],
  6. - [AC_CHECK_LIB([cyassl], [CyaSSL_Init],
  7. + [AC_CHECK_LIB([cyassl], [wolfSSL_Init],
  8. [AC_SUBST([LIBSSL], ["-lcyassl"])
  9. AC_DEFINE([HAVE_CYASSL], [1],
  10. [Define if you have cyassl])
  11. --- a/src/ippool.c
  12. +++ b/src/ippool.c
  13. @@ -35,6 +35,7 @@ int ippool_print(int fd, struct ippool_t *this) {
  14. char * sep = "-- %-15s ------------------------------------------------------------\n";
  15. #define ERR 0
  16. +#undef USED /* defined in <wolfssl/wolfcrypt/integer.h> */
  17. #define USED 1
  18. #define FREE 2
  19. #define LIST 3
  20. --- a/src/md5.h
  21. +++ b/src/md5.h
  22. @@ -35,7 +35,6 @@
  23. #define MD5Update MD5_Update
  24. #define MD5Final MD5_Final
  25. -typedef struct CYASSL_MD5_CTX MD5_CTX;
  26. #else
  27. struct MD5Context {
  28. --- a/src/ssl.c
  29. +++ b/src/ssl.c
  30. @@ -131,7 +131,7 @@ _openssl_env_init(openssl_env *env, char *engine, int server) {
  31. */
  32. const long options = SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_COMPRESSION;
  33. env->meth = SSLv23_method();
  34. - env->ctx = SSL_CTX_new(env->meth);
  35. + env->ctx = SSL_CTX_new((void *)env->meth);
  36. SSL_CTX_set_options(env->ctx, options);
  37. if (_options.sslciphers) {
  38. SSL_CTX_set_cipher_list(env->ctx, _options.sslciphers);
  39. --- a/src/ssl.h
  40. +++ b/src/ssl.h
  41. @@ -48,6 +48,8 @@ typedef struct {
  42. #include <time.h>
  43. #include <string.h>
  44. +#define OPENSSL_NO_ENGINE
  45. +#include <cyassl/options.h>
  46. #include <cyassl/ssl.h>
  47. #include <cyassl/openssl/bio.h>
  48. #include <cyassl/openssl/crypto.h>