Support OpenSSL 1.1.0.

- use common code for OpenSSL pre-1.1.0 and
  1.1.0 where possible.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1730422 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Jung
2016-02-14 22:40:07 +00:00
parent 9b4551dea9
commit d7639a5ad0
8 changed files with 8 additions and 92 deletions

View File

@ -876,11 +876,7 @@ static int use_certificate_chain(
unsigned long err;
int n;
#if OPENSSL_VERSION_NUMBER < 0x10100000L
if ((bio = BIO_new(BIO_s_file_internal())) == NULL)
#else
if ((bio = BIO_new(BIO_s_file())) == NULL)
#endif
return -1;
if (BIO_read_filename(bio, file) <= 0) {
BIO_free(bio);