You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
postgres/src/backend/libpq
Heikki Linnakangas 40f908bdcd Introduce Streaming Replication. 16 years ago
..
Makefile Refactor backend makefiles to remove lots of duplicate code 18 years ago
README.SSL Remove large parts of the old SSL readme, that consisted of a couple 17 years ago
auth.c Create typedef pgsocket for storing socket descriptors. 16 years ago
be-fsstubs.c Update copyright for the year 2010. 16 years ago
be-secure.c Introduce Streaming Replication. 16 years ago
crypt.c Update copyright for the year 2010. 16 years ago
hba.c Introduce Streaming Replication. 16 years ago
ip.c Create typedef pgsocket for storing socket descriptors. 16 years ago
md5.c Update copyright for the year 2010. 16 years ago
pg_hba.conf.sample Introduce Streaming Replication. 16 years ago
pg_ident.conf.sample Improve comments in pg_ident.conf.sample. 17 years ago
pqcomm.c Introduce Streaming Replication. 16 years ago
pqformat.c Remove all the special-case code for INT64_IS_BUSTED, per decision that 16 years ago
pqsignal.c Update copyright for the year 2010. 16 years ago

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

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