  extern PostgresPollingStatusType pqsecure_open_client(PGconn *);
  extern void pqsecure_close(PGconn *);
  extern ssize_t pqsecure_read(PGconn *, void *ptr, size_t len);
+diff -urN postgresql-8.2.3/src/interfaces/libpq/libpqddll.def postgresql-8.2.3-tsnorri/src/interfaces/libpq/libpqddll.def
+--- postgresql-8.2.3/src/interfaces/libpq/libpqddll.def	2007-02-07 06:44:09.000000000 +0200
++++ postgresql-8.2.3-tsnorri/src/interfaces/libpq/libpqddll.def	2007-02-24 19:51:07.000000000 +0200
+@@ -137,3 +137,4 @@
+     PQdescribePortal          @ 134
+     PQsendDescribePrepared    @ 135
+     PQsendDescribePortal      @ 136
++    PQauthRequest             @ 137
+diff -urN postgresql-8.2.3/src/interfaces/libpq/libpqdll.def postgresql-8.2.3-tsnorri/src/interfaces/libpq/libpqdll.def
+--- postgresql-8.2.3/src/interfaces/libpq/libpqdll.def	2007-02-07 06:44:09.000000000 +0200
++++ postgresql-8.2.3-tsnorri/src/interfaces/libpq/libpqdll.def	2007-02-24 19:50:47.000000000 +0200
+@@ -137,3 +137,4 @@
+     PQdescribePortal          @ 134
+     PQsendDescribePrepared    @ 135
+     PQsendDescribePortal      @ 136
++    PQauthRequest             @ 137

 				if (pollres == PGRES_POLLING_OK)
 				{
 					/* SSL handshake done, ready to send startup packet */
diff -urN postgresql-8.2.3/src/interfaces/libpq/fe-secure.c postgresql-8.2.3-tsnorri/src/interfaces/libpq/fe-secure.c
--- postgresql-8.2.3/src/interfaces/libpq/fe-secure.c	2006-10-06 20:14:01.000000000 +0300
+++ postgresql-8.2.3-tsnorri/src/interfaces/libpq/fe-secure.c	2007-02-06 12:37:06.000000000 +0200
@@ -193,10 +193,10 @@
 }
 

 		resetPQExpBuffer(&conn->errorMessage);
-	}
+    }
+    return PGRES_POLLING_WRITING; /* FIXME: Should this be PGRES_POLLING_ACTIVE instead? */
+#else
+	/* shouldn't get here */
+	return PGRES_POLLING_FAILED;
