postgresql/src/backend/libpq
Peter Eisentraut 6ab42ae367 Support host names in pg_hba.conf
Peter Eisentraut, reviewed by KaiGai Kohei and Tom Lane
2010-10-15 22:56:18 +03:00
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
README.SSL Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
auth.c Fix low-risk potential denial of service against RADIUS login. 2010-10-15 16:59:10 +02:00
be-fsstubs.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
be-secure.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
crypt.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
hba.c Support host names in pg_hba.conf 2010-10-15 22:56:18 +03:00
ip.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
md5.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_hba.conf.sample Support host names in pg_hba.conf 2010-10-15 22:56:18 +03:00
pg_ident.conf.sample Reformat the comments in pg_hba.conf and pg_ident.conf 2010-01-26 06:58:39 +00:00
pqcomm.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pqformat.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pqsignal.c Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00

README.SSL

src/backend/libpq/README.SSL

SSL
===

>From the servers perspective:


  Receives StartupPacket
           |
           |
 (Is SSL_NEGOTIATE_CODE?) -----------  Normal startup
           |                  No
           |
           | Yes
           |
           |
 (Server compiled with USE_SSL?) ------- Send 'N'
           |                       No        |
           |                                 |
           | Yes                         Normal startup
           |
           |
        Send 'S'
           |
           |
      Establish SSL
           |
           |
      Normal startup
     




>From the clients perspective (v6.6 client _with_ SSL):


      Connect
         |
         |
  Send packet with SSL_NEGOTIATE_CODE
         |
         |
  Receive single char  ------- 'S' -------- Establish SSL
         |                                       |
         | '<else>'                              |
         |                                  Normal startup
         |
         |
   Is it 'E' for error  ------------------- Retry connection
         |                  Yes             without SSL
         | No
         |
   Is it 'N' for normal ------------------- Normal startup
         |                  Yes
         |
   Fail with unknown

---------------------------------------------------------------------------