postgresql/src/backend/libpq
Peter Eisentraut 788af6f854 Move atooid() definition to a central place 2017-03-01 11:55:28 -05:00
..
Makefile Move code shared between libpq and backend from backend/libpq/ to common/. 2016-09-02 13:49:59 +03:00
README.SSL Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
auth.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
be-fsstubs.c Rename C symbols for backend lo_ functions 2017-01-17 12:35:30 -05:00
be-secure-openssl.c Re-allow SSL passphrase prompt at server start, but not thereafter. 2017-01-04 12:44:03 -05:00
be-secure.c Re-allow SSL passphrase prompt at server start, but not thereafter. 2017-01-04 12:44:03 -05:00
crypt.c Silence compiler warning. 2017-02-02 10:42:37 +02:00
hba.c Move atooid() definition to a central place 2017-03-01 11:55:28 -05:00
ifaddr.c Remove some configure header-file checks that we weren't really using. 2017-02-25 18:10:09 -05:00
pg_hba.conf.sample Consistently mention 'SELECT pg_reload_conf()' in config files 2016-10-25 11:26:15 -04: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 Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pqformat.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pqmq.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
pqsignal.c Update copyright via script for 2017 2017-01-03 13:48:53 -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

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