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.

85 lines
2.8 KiB

  1. --- a/src/dane-openssl.c
  2. +++ b/src/dane-openssl.c
  3. @@ -1098,8 +1098,8 @@ if (dane->selectors[DANESSL_USAGE_DANE_T
  4. * Check that setting the untrusted chain updates the expected
  5. * structure member at the expected offset.
  6. */
  7. - X509_STORE_CTX_trusted_stack(ctx, dane->roots);
  8. - X509_STORE_CTX_set_chain(ctx, dane->chain);
  9. + X509_STORE_CTX_set0_trusted_stack(ctx, dane->roots);
  10. + X509_STORE_CTX_set0_untrusted(ctx, dane->chain);
  11. OPENSSL_assert(dane->chain == X509_STORE_CTX_get0_untrusted(ctx));
  12. }
  13. }
  14. --- a/src/pdkim/signing.c
  15. +++ b/src/pdkim/signing.c
  16. @@ -699,7 +699,6 @@ return NULL;
  17. void
  18. exim_dkim_init(void)
  19. {
  20. -ERR_load_crypto_strings();
  21. }
  22. --- a/src/tls-openssl.c
  23. +++ b/src/tls-openssl.c
  24. @@ -22,7 +22,10 @@ functions from the OpenSSL library. */
  25. #include <openssl/lhash.h>
  26. #include <openssl/ssl.h>
  27. #include <openssl/err.h>
  28. +#include <openssl/bn.h>
  29. +#include <openssl/dh.h>
  30. #include <openssl/rand.h>
  31. +#include <openssl/rsa.h>
  32. #ifndef OPENSSL_NO_ECDH
  33. # include <openssl/ec.h>
  34. #endif
  35. @@ -1462,8 +1465,8 @@ if (!EVP_PKEY_assign_RSA(pkey, rsa))
  36. X509_set_version(x509, 2); /* N+1 - version 3 */
  37. ASN1_INTEGER_set(X509_get_serialNumber(x509), 1);
  38. -X509_gmtime_adj(X509_get_notBefore(x509), 0);
  39. -X509_gmtime_adj(X509_get_notAfter(x509), (long)60 * 60); /* 1 hour */
  40. +X509_gmtime_adj(X509_getm_notBefore(x509), 0);
  41. +X509_gmtime_adj(X509_getm_notAfter(x509), (long)60 * 60); /* 1 hour */
  42. X509_set_pubkey(x509, pkey);
  43. name = X509_get_subject_name(x509);
  44. @@ -3900,8 +3903,8 @@ fprintf(f, "Library version: OpenSSL: Co
  45. " Runtime: %s\n"
  46. " : %s\n",
  47. OPENSSL_VERSION_TEXT,
  48. - SSLeay_version(SSLEAY_VERSION),
  49. - SSLeay_version(SSLEAY_BUILT_ON));
  50. + OpenSSL_version(OPENSSL_VERSION),
  51. + OpenSSL_version(OPENSSL_BUILT_ON));
  52. /* third line is 38 characters for the %s and the line is 73 chars long;
  53. the OpenSSL output includes a "built on: " prefix already. */
  54. }
  55. @@ -3943,8 +3946,6 @@ if (pidnow != pidlast)
  56. is unique for each thread", this doesn't apparently apply across processes,
  57. so our own warning from vaguely_random_number_fallback() applies here too.
  58. Fix per PostgreSQL. */
  59. - if (pidlast != 0)
  60. - RAND_cleanup();
  61. pidlast = pidnow;
  62. }
  63. --- a/src/tlscert-openssl.c
  64. +++ b/src/tlscert-openssl.c
  65. @@ -217,13 +217,13 @@ return mod ? tls_field_from_dn(cp, mod)
  66. uschar *
  67. tls_cert_not_before(void * cert, uschar * mod)
  68. {
  69. -return asn1_time_copy(X509_get_notBefore((X509 *)cert), mod);
  70. +return asn1_time_copy(X509_getm_notBefore((X509 *)cert), mod);
  71. }
  72. uschar *
  73. tls_cert_not_after(void * cert, uschar * mod)
  74. {
  75. -return asn1_time_copy(X509_get_notAfter((X509 *)cert), mod);
  76. +return asn1_time_copy(X509_getm_notAfter((X509 *)cert), mod);
  77. }
  78. uschar *