Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group