pgmoon
pgmoon copied to clipboard
fix digest mapping for scram auth
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:
- This change adds the dependency of lua-resty-openssl even if self.sock_type is not nginx and not cqueues, is that okay?
- I might need some help on adding test of this in CI