postgresql/src/backend/libpq
Magnus Hagander 8373490607 It's clearly now pointless to do backwards compatible parsing of this,
since we released a version without it, so remove the comment that
says we might want to do that.
2010-03-01 16:02:01 +00:00
..
Makefile Refactor backend makefiles to remove lots of duplicate code 2008-02-19 10:30:09 +00:00
README.SSL Remove large parts of the old SSL readme, that consisted of a couple 2008-10-24 11:48:29 +00:00
auth.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
be-fsstubs.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
be-secure.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
crypt.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
hba.c It's clearly now pointless to do backwards compatible parsing of this, 2010-03-01 16:02:01 +00:00
ip.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
md5.c pgindent run for 9.0 2010-02-26 02:01:40 +00:00
pg_hba.conf.sample Add support for RADIUS authentication. 2010-01-27 12:12:00 +00: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 pgindent run for 9.0 2010-02-26 02:01:40 +00:00
pqformat.c Remove all the special-case code for INT64_IS_BUSTED, per decision that 2010-01-07 04:53:35 +00:00
pqsignal.c Update copyright for the year 2010. 2010-01-02 16:58:17 +00:00

README.SSL

$PostgreSQL: pgsql/src/backend/libpq/README.SSL,v 1.7 2008/10/24 11:48:29 mha Exp $

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

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