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.

30 lines
816 B

  1. From ee3bf7f5079bcad51cc89197b6a9e34da746fc7e Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Sat, 7 Aug 2021 20:05:04 -0700
  4. Subject: [PATCH] fix compilation without OpenSSL engines
  5. Signed-off-by: Rosen Penev <rosenp@gmail.com>
  6. ---
  7. src/Mayaqua/Encrypt.c | 4 ++++
  8. 1 file changed, 4 insertions(+)
  9. --- a/src/Mayaqua/Encrypt.c
  10. +++ b/src/Mayaqua/Encrypt.c
  11. @@ -3128,6 +3128,7 @@ bool IsEncryptedK(BUF *b, bool private_k
  12. K *OpensslEngineToK(char *key_file_name, char *engine_name)
  13. {
  14. +#ifndef OPENSSL_NO_ENGINE
  15. K *k;
  16. #if OPENSSL_API_COMPAT < 0x10100000L
  17. ENGINE_load_dynamic();
  18. @@ -3140,6 +3141,9 @@ K *OpensslEngineToK(char *key_file_name,
  19. k->pkey = pkey;
  20. k->private_key = true;
  21. return k;
  22. +#else
  23. + return NULL;
  24. +#endif
  25. }
  26. // Convert the BUF to a K