Skip to content
Snippets Groups Projects
Commit 7ae39021 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

pgsql: Fix SSL method in combination with Stdio.Buffer.

parent 3eb9dc72
No related branches found
No related tags found
No related merge requests found
...@@ -506,9 +506,10 @@ outer: ...@@ -506,9 +506,10 @@ outer:
PD("SSLRequest\n"); PD("SSLRequest\n");
start()->add_int32(8)->add_int32(PG_PROTOCOL(1234,5679)) start()->add_int32(8)->add_int32(PG_PROTOCOL(1234,5679))
->sendcmd(SENDOUT); ->sendcmd(SENDOUT);
switch(read_int8()) { string s = socket.read(1);
switch (sizeof(s) && s[0]) {
case 'S': case 'S':
object fcon=SSL.File(socket,SSL.Context()); SSL.File fcon = SSL.File(socket, SSL.Context());
if(fcon->connect()) { if(fcon->connect()) {
socket=fcon; socket=fcon;
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment