leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
390 stars 93 forks source link

fix digest mapping for scram auth #140

Open fffonion opened 1 year ago

fffonion commented 1 year ago

From https://github.com/Kong/pgmoon/pull/20.

In OpenSSL 3.0 where RSA-SHA256 is no longer a valid digest name. This commit fix such use case. This fix also covers the cases like ecdsa-with-X so the previous block so the manual mapping could be removed.

But I have two thoughts needs discussion: