pgsql: Change libpq's PQgetssl() to return a void*, rather than SSL *,

Started by Bruce Momjianover 20 years ago3 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

Log Message:
-----------
Change libpq's PQgetssl() to return a void*, rather than SSL *, so that
applications don't need the SSL headers.

Martijn van Oosterhout

Modified Files:
--------------
pgsql/src/interfaces/libpq:
fe-secure.c (r1.76 -> r1.77)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-secure.c.diff?r1=1.76&r2=1.77)
libpq-fe.h (r1.126 -> r1.127)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/libpq-fe.h.diff?r1=1.126&r2=1.127)

#2Kris Jurka
books@ejurka.com
In reply to: Bruce Momjian (#1)
Re: pgsql: Change libpq's PQgetssl() to return a void*, rather than

Bruce Momjian wrote:

Log Message:
-----------
Change libpq's PQgetssl() to return a void*, rather than SSL *, so that
applications don't need the SSL headers.

Now that libpq-fe.h doesn't include <openssl/ssl.h> the code in psql's
startup.c needs to include it itself.

#3Bruce Momjian
bruce@momjian.us
In reply to: Kris Jurka (#2)
Re: pgsql: Change libpq's PQgetssl() to return a void*,

Kris Jurka wrote:

Bruce Momjian wrote:

Log Message:
-----------
Change libpq's PQgetssl() to return a void*, rather than SSL *, so that
applications don't need the SSL headers.

Now that libpq-fe.h doesn't include <openssl/ssl.h> the code in psql's
startup.c needs to include it itself.

You mean like the attached patch, applied.

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachments:

/bjm/difftext/x-diffDownload+3-0