Re: [COMMITTERS] pgsql: Support OpenSSL 1.1.0.

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org, mikael(dot)kjellstrom(at)gmail(dot)com
Subject: Re: [COMMITTERS] pgsql: Support OpenSSL 1.1.0.
Date: 2016-09-15 17:21:56
Message-ID: 480aaf7b-4eee-a29b-914a-bd2d40767040@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 09/15/2016 07:51 PM, Heikki Linnakangas wrote:
> Wild guess: curculio is building with LibreSSL, which claims to be
> OpenSSL >= 1.1.0, but it doesn't actually implement all the functions
> that OpenSSL 1.1.0 does.
>
> Looks like we need some more autoconf scripting to detect LibreSSL. Or
> switch to detecting the existence of individual functions, rather than
> checking the version number. That would be more autoconf-like anyway.

I downloaded LibreSSL and I'm getting similar errors on my laptop. So
yes, that seems to be the problem. LibreSSL defines:

> /* These will change with each release of LibreSSL-portable */
> #define LIBRESSL_VERSION_NUMBER 0x2040200fL
> #define LIBRESSL_VERSION_TEXT "LibreSSL 2.4.2"
>
> /* These will never change */
> #define OPENSSL_VERSION_NUMBER 0x20000000L
> #define OPENSSL_VERSION_TEXT LIBRESSL_VERSION_TEXT
> #define OPENSSL_VERSION_PTEXT " part of " OPENSSL_VERSION_TEXT

I'm going to replace the OPENSSL_VERSION_NUMBER #ifdefs with autoconf
AC_CHECK_FUNCS checks for the actual functions we need.

- Heikki

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2016-09-15 19:54:36 pgsql: Fix building with LibreSSL.
Previous Message Heikki Linnakangas 2016-09-15 16:51:42 Re: [COMMITTERS] pgsql: Support OpenSSL 1.1.0.

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-09-15 17:39:00 Re: Surprising behaviour of \set AUTOCOMMIT ON
Previous Message Daniel Verite 2016-09-15 17:13:02 Re: Surprising behaviour of \set AUTOCOMMIT ON