From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
Cc: | Álvaro Hernández Tortosa <aht(at)8kdata(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256 |
Date: | 2017-11-18 23:13:30 |
Message-ID: | CAB7nPqS8UVX5FMSg23wKsAMeK6yNbpQGaAci9t1jbHFGr-EvQg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-jdbc |
On Sun, Nov 19, 2017 at 12:56 AM, Peter Eisentraut
<peter(dot)eisentraut(at)2ndquadrant(dot)com> wrote:
> On 11/18/17 06:32, Michael Paquier wrote:
>> + cbind_header_len = 4 + strlen(state->channel_binding_type); /*
>> p=type,, */
>> + cbind_input_len = cbind_header_len + cbind_data_len;
>> + cbind_input = malloc(cbind_input_len);
>> + if (!cbind_input)
>> + goto oom_error;
>> + snprintf(cbind_input, cbind_input_len, "p=%s",
>> state->channel_binding_type);
>> + memcpy(cbind_input + cbind_header_len, cbind_data, cbind_data_len);
>> By looking at RFC5802, a base64 encoding of cbind-input is used:
>> cbind-input = gs2-header [ cbind-data ]
>> gs2-cbind-flag "," [ authzid ] ","
>> However you are missing two commands after p=%s, no?
>
> fixed
s/commands/commas/. You caught my words correctly.
> I have committed the patch with the above fixes.
Thanks, Peter!
> I'll be off for a week, so perhaps by that time you could make a rebased
> version of the rest? I'm not sure how much more time I'll have, so
> maybe it will end up being moved to the next CF.
OK, let's see then. That's not an issue for me if this gets bumped.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2017-11-19 00:30:40 | Re: Logical Replication and triggers |
Previous Message | Peter Geoghegan | 2017-11-18 22:54:14 | Re: [HACKERS] ginInsertCleanup called from vacuum could still miss tuples to be deleted |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2017-11-20 14:33:05 | Migration to pglister - Before |
Previous Message | Peter Eisentraut | 2017-11-18 15:56:23 | Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256 |