postgresql/src/backend/libpq
Bruce Momjian 111022eac6 Move username lookup functions from /port to /common
Per suggestion from Peter E and Alvaro
2014-01-10 18:03:28 -05:00
..
auth.c Move username lookup functions from /port to /common 2014-01-10 18:03:28 -05:00
be-fsstubs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
be-secure.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
crypt.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
hba.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ip.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
Makefile
md5.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_hba.conf.sample
pg_ident.conf.sample
pqcomm.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pqformat.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
pqsignal.c Update copyright for 2014 2014-01-07 16:05:30 -05: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

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