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
Tom Lane 6708e447ef Clean up shm_mq cleanup. 8 years ago
..
Makefile Support SCRAM-SHA-256 authentication (RFC 5802 and 7677). 9 years ago
README.SSL Remove useless whitespace at end of lines 15 years ago
auth-scram.c Tweak some SCRAM error messages and code comments 9 years ago
auth.c Don't allow logging in with empty password. 9 years ago
be-fsstubs.c Require update permission for the large object written by lo_put(). 9 years ago
be-secure-openssl.c Final pgindent + perltidy run for v10. 9 years ago
be-secure.c Always use 2048 bit DH parameters for OpenSSL ephemeral DH ciphers. 9 years ago
crypt.c Don't allow logging in with empty password. 9 years ago
hba.c Phase 3 of pgindent updates. 9 years ago
ifaddr.c Phase 2 of pgindent updates. 9 years ago
pg_hba.conf.sample Rename "scram" to "scram-sha-256" in pg_hba.conf and password_encryption. 9 years ago
pg_ident.conf.sample Reformat the comments in pg_hba.conf and pg_ident.conf 16 years ago
pqcomm.c Second try at fixing tcp_keepalives_idle option on Solaris. 9 years ago
pqformat.c Update copyright via script for 2017 9 years ago
pqmq.c Clean up shm_mq cleanup. 8 years ago
pqsignal.c Update copyright via script for 2017 9 years ago

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

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