SSL support

From: Mikhail Teterin <mi(at)privatelabs(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: SSL support
Date: 2000-10-06 15:30:21
Message-ID: 200010061530.e96FULk41681@misha.privatelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

It appears, the following patch is needed to ensure the 7.0.2 can be
built with SSL support (with OpenSSL). It fixes the fe-connect.c to
report errors in "the new way". A few Makefiles also need to be modified
to ensure the SSL libraries are listed as dependencies for the PG libs.

--- interfaces/libpq/fe-connect.c Sun May 21 17:19:53 2000
+++ interfaces/libpq/fe-connect.c Fri Sep 15 13:53:52 2000
@@ -801 +801 @@
- sprintf(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,
@@ -809 +809 @@
- sprintf(conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
+ printfPQExpBuffer(&conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
@@ -822 +822 @@
- sprintf(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,
@@ -832 +832 @@
- sprintf(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,
@@ -850 +850 @@
- strcpy(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,
--- interfaces/libpq/fe-connect.c Sun May 21 17:19:53 2000
+++ interfaces/libpq/fe-connect.c Fri Sep 15 13:53:52 2000
@@ -801 +801 @@
- sprintf(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,
@@ -809 +809 @@
- sprintf(conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
+ printfPQExpBuffer(&conn->errorMessage, "PQconnectDB() -- couldn't read postmaster response: errno=%d\n%s\n",
@@ -822 +822 @@
- sprintf(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,
@@ -832 +832 @@
- sprintf(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,
@@ -850 +850 @@
- strcpy(conn->errorMessage,
+ printfPQExpBuffer(&conn->errorMessage,

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Mikhail Teterin 2000-10-06 15:32:22 TCL, but not TK
Previous Message Sergey Mavrinsky 2000-10-06 14:43:45 POSTGRES BUG - FIX IT PLEASE