diff options
Diffstat (limited to 'doc/src/sgml/libpq.sgml')
| -rw-r--r-- | doc/src/sgml/libpq.sgml | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index c14f9ee260..648406e546 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ <!-- -$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.38 2000/05/02 20:01:52 thomas Exp $ +$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.39 2000/08/29 04:15:43 momjian Exp $ --> <chapter id="libpq-chapter"> @@ -177,6 +177,17 @@ PGconn *PQconnectdb(const char *conninfo) </para> </listitem> </varlistentry> + + <varlistentry> + <term><literal>requiressl</literal></term> + <listitem> + <para> + Set to '1' to require SSL connection to the backend. Libpq + will then refuse to connect if the server does not support + SSL. Set to '0' (default) to negotiate with server. + </para> + </listitem> + </varlistentry> </variablelist> If any parameter is unspecified, then the corresponding @@ -633,6 +644,25 @@ int PQbackendPID(const PGconn *conn); server host, not the local host! </para> </listitem> + + <listitem> + <para> + <function>PQgetssl</function> + Returns the SSL structure used in the connection, or NULL + if SSL is not in use. + <synopsis> +SSL *PQgetssl(const PGconn *conn); + </synopsis> + This structure can be used to verify encryption levels, check + server certificate and more. Refer to the OpenSSL documentation + for information about this structure. + </para> + <para> + You must define <literal>USE_SSL</literal> in order to get the + prototype for this function. Doing this will also + automatically include <filename>ssl.h</filename> from OpenSSL. + </para> + </listitem> </itemizedlist> </para> </sect1> |
