Fix build with LibreSSL.

PR:		219922
This commit is contained in:
Hajimu UMEMOTO 2017-06-11 16:26:49 +00:00
parent 28769d49c8
commit e152f28544
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=443396

View file

@ -0,0 +1,11 @@
--- imap/tls.c.orig 2017-05-15 05:43:30 UTC
+++ imap/tls.c
@@ -225,7 +225,7 @@ static RSA *tmp_rsa_cb(SSL * s __attribu
}
#endif
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
/* replacements for new 1.1 API accessors */
/* XXX probably put these somewhere central */
static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)