From 3c486fbd1c8e8f79902a40ef929c4ed54f122561 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Thu, 20 Nov 2008 09:29:36 +0000 Subject: Control client certificate requesting with the pg_hba option "clientcert" instead of just relying on the root certificate file to be present. --- src/include/libpq/hba.h | 3 ++- src/include/libpq/libpq.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include/libpq') diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index 79b5a51c6d0..cf5942a2668 100644 --- a/src/include/libpq/hba.h +++ b/src/include/libpq/hba.h @@ -4,7 +4,7 @@ * Interface to hba.c * * - * $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.51 2008/10/28 12:10:44 mha Exp $ + * $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.52 2008/11/20 09:29:36 mha Exp $ * *------------------------------------------------------------------------- */ @@ -54,6 +54,7 @@ typedef struct int ldapport; char *ldapprefix; char *ldapsuffix; + bool clientcert; } HbaLine; typedef struct Port hbaPort; diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h index 53c6437cea1..cc4d1bbd7da 100644 --- a/src/include/libpq/libpq.h +++ b/src/include/libpq/libpq.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/libpq/libpq.h,v 1.69 2008/01/01 19:45:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/libpq/libpq.h,v 1.70 2008/11/20 09:29:36 mha Exp $ * *------------------------------------------------------------------------- */ @@ -67,6 +67,7 @@ extern void pq_endcopyout(bool errorAbort); * prototypes for functions in be-secure.c */ extern int secure_initialize(void); +extern bool secure_loaded_verify_locations(void); extern void secure_destroy(void); extern int secure_open_server(Port *port); extern void secure_close(Port *port); -- cgit v1.2.3