Bruce Momjian 5c25d60244 Add:
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc

to all files copyright Regents of Berkeley.  Man, that's a lot of files.
2000-01-26 05:58:53 +00:00
..
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
2000-01-26 05:58:53 +00:00
1999-09-27 03:16:09 +00:00
2000-01-26 05:58:53 +00:00

>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