• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

MakefileH A D08-Nov-2021674 259

README.SSLH A D08-Nov-20211.3 KiB6148

auth.cH A D08-Nov-202176.2 KiB2,8631,879

be-fsstubs.cH A D08-Nov-202122 KiB922586

be-secure-openssl.cH A D08-Nov-202131.5 KiB1,220826

be-secure.cH A D08-Nov-20216.4 KiB302167

crypt.cH A D08-Nov-20215.1 KiB202143

hba.cH A D08-Nov-202158.9 KiB2,2681,665

ip.cH A D08-Nov-202118.2 KiB820564

md5.cH A D08-Nov-202110.1 KiB346227

pg_hba.conf.sampleH A D08-Nov-20214.3 KiB9085

pg_ident.conf.sampleH A D08-Nov-20211.6 KiB4340

pqcomm.cH A D08-Nov-202150 KiB1,9181,115

pqformat.cH A D08-Nov-202118.3 KiB684341

pqmq.cH A D08-Nov-20218.2 KiB332228

pqsignal.cH A D08-Nov-20213.6 KiB14781

README.SSL

1src/backend/libpq/README.SSL
2
3SSL
4===
5
6>From the servers perspective:
7
8
9  Receives StartupPacket
10           |
11           |
12 (Is SSL_NEGOTIATE_CODE?) -----------  Normal startup
13           |                  No
14           |
15           | Yes
16           |
17           |
18 (Server compiled with USE_SSL?) ------- Send 'N'
19           |                       No        |
20           |                                 |
21           | Yes                         Normal startup
22           |
23           |
24        Send 'S'
25           |
26           |
27      Establish SSL
28           |
29           |
30      Normal startup
31
32
33
34
35
36>From the clients perspective (v6.6 client _with_ SSL):
37
38
39      Connect
40         |
41         |
42  Send packet with SSL_NEGOTIATE_CODE
43         |
44         |
45  Receive single char  ------- 'S' -------- Establish SSL
46         |                                       |
47         | '<else>'                              |
48         |                                  Normal startup
49         |
50         |
51   Is it 'E' for error  ------------------- Retry connection
52         |                  Yes             without SSL
53         | No
54         |
55   Is it 'N' for normal ------------------- Normal startup
56         |                  Yes
57         |
58   Fail with unknown
59
60---------------------------------------------------------------------------
61