|
1 | | -<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.284 2009/04/14 20:42:48 momjian Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.285 2009/04/15 13:03:11 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="libpq"> |
4 | 4 | <title><application>libpq</application> - C Library</title> |
|
255 | 255 | This option determines whether or with what priority a |
256 | 256 | <acronym>SSL</> TCP/IP connection will be negotiated with the |
257 | 257 | server. There are four modes: |
| 258 | + </para> |
258 | 259 |
|
259 | | - <table id="libpq-connect-sslmode-options"> |
260 | | - <title><literal>sslmode</literal> options</title> |
261 | | - <tgroup cols="2"> |
262 | | - <thead> |
263 | | - <row> |
264 | | - <entry>Option</entry> |
265 | | - <entry>Description</entry> |
266 | | - </row> |
267 | | - </thead> |
268 | | - |
269 | | - <tbody> |
270 | | - |
271 | | - <row> |
272 | | - <entry><literal>disable</></entry> |
273 | | - <entry>only try a non-<acronym>SSL</> connection |
274 | | - </row> |
275 | | - |
276 | | - <row> |
277 | | - <entry><literal>allow</></entry> |
278 | | - <entry>first try a non-<acronym>SSL</> |
279 | | - connection; if that fails, try an <acronym>SSL</> |
280 | | - connection</entry> |
281 | | - </row> |
282 | | - |
283 | | - <row> |
284 | | - <entry><literal>prefer</> (default)</entry> |
285 | | - <entry>first try an <acronym>SSL</> connection; if |
286 | | - that fails, try a non-<acronym>SSL</> |
| 260 | + <table id="libpq-connect-sslmode-options"> |
| 261 | + <title><literal>sslmode</literal> options</title> |
| 262 | + <tgroup cols="2"> |
| 263 | + <thead> |
| 264 | + <row> |
| 265 | + <entry>Option</entry> |
| 266 | + <entry>Description</entry> |
| 267 | + </row> |
| 268 | + </thead> |
| 269 | + |
| 270 | + <tbody> |
| 271 | + |
| 272 | + <row> |
| 273 | + <entry><literal>disable</></entry> |
| 274 | + <entry>only try a non-<acronym>SSL</> connection</entry> |
| 275 | + </row> |
| 276 | + |
| 277 | + <row> |
| 278 | + <entry><literal>allow</></entry> |
| 279 | + <entry>first try a non-<acronym>SSL</> |
| 280 | + connection; if that fails, try an <acronym>SSL</> |
287 | 281 | connection</entry> |
288 | | - </row> |
289 | | - |
290 | | - <row> |
291 | | - <entry><literal>require</></entry> |
292 | | - <entry>only try an <acronym>SSL</> connection</entry> |
293 | | - </row> |
294 | | - |
295 | | - </tbody> |
296 | | - </tgroup> |
297 | | - </table> |
| 282 | + </row> |
| 283 | + |
| 284 | + <row> |
| 285 | + <entry><literal>prefer</> (default)</entry> |
| 286 | + <entry>first try an <acronym>SSL</> connection; if |
| 287 | + that fails, try a non-<acronym>SSL</> |
| 288 | + connection</entry> |
| 289 | + </row> |
| 290 | + |
| 291 | + <row> |
| 292 | + <entry><literal>require</></entry> |
| 293 | + <entry>only try an <acronym>SSL</> connection</entry> |
| 294 | + </row> |
| 295 | + |
| 296 | + </tbody> |
| 297 | + </tgroup> |
| 298 | + </table> |
298 | 299 |
|
299 | 300 | <para> |
300 | 301 | <literal>sslmode</> is ignored for Unix domain socket |
|