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.
Michael Paquier
d0071f9228
pgcrypto: Fix incorrect argument vs PG_GETARG*() mappings
...
The following functions use a mix of bytea and text arguments, but their
C internals always used PG_GETARG_BYTEA_PP(), creating an incorrect mix
with the argument types expected by encrypt_internal():
- pgp_sym_encrypt_bytea(bytea,text[,text])
- pgp_sym_encrypt(text,text[,text])
- pgp_sym_decrypt_bytea(bytea,text[,text])
- pgp_sym_decrypt(bytea,text[,text])
- pgp_pub_encrypt_bytea(bytea,bytea[,text])
- pgp_pub_encrypt(text,bytea[,text])
- pgp_pub_decrypt_bytea(bytea, bytea[,text[,text]])
- pgp_pub_decrypt(bytea,bytea[,text[,text]])
This commit fixes the inconsistencies between the PG_GETARG*() macros
and the argument types of each function.
Both BYTEA_PP() and TEXT_PP() rely on PG_DETOAST_DATUM_PACKED(), that
returns an unaligned pointer, so this was not leading to an actual
problem as far as I know, but let's be consistent.
Author: Shihao Zhong
Discussion: https://postgr.es/m/CAGRkXqRfiWT--DzVPx_UGpNHTt0YT5Jo8eV2CtT56jNP=QpXSQ@mail.gmail.com
2 years ago
..
expected
Fix typos in comments and in one isolation test.
2 years ago
sql
Fix typos in comments and in one isolation test.
2 years ago
.gitignore
Support SCRAM-SHA-256 authentication (RFC 5802 and 7677).
9 years ago
Makefile
pgcrypto: Split off pgp-encrypt-md5 test
2 years ago
crypt-blowfish.c
Tidy up claimed supported CPUs and OSes.
3 years ago
crypt-des.c
Replace remaining StrNCpy() by strlcpy()
5 years ago
crypt-gensalt.c
Phase 3 of pgindent updates.
8 years ago
crypt-md5.c
Add missing error check in pgcrypto/crypt-md5.c.
5 years ago
mbuf.c
pgcrypto: Remove unused code
3 years ago
mbuf.h
Harmonize parameter names in contrib code.
3 years ago
meson.build
Update copyright for 2024
2 years ago
openssl.c
Fix typos in comments and in one isolation test.
2 years ago
pgcrypto--1.0--1.1.sql
Add gen_random_uuid() to contrib/pgcrypto.
12 years ago
pgcrypto--1.1--1.2.sql
Add functions for dealing with PGP armor header lines to pgcrypto.
11 years ago
pgcrypto--1.2--1.3.sql
Update pgcrypto extension for parallel query.
9 years ago
pgcrypto--1.3.sql
Minor fixes in contrib installation scripts.
9 years ago
pgcrypto.c
New header varatt.h split off from postgres.h
3 years ago
pgcrypto.control
Mark some contrib modules as "trusted".
6 years ago
pgcrypto.h
Remove unnecessary prototypes
9 years ago
pgp-armor.c
Add some const qualifiers
2 years ago
pgp-cfb.c
pgcrypto: Remove internal padding implementation
4 years ago
pgp-compress.c
Improve const use in zlib-using code
2 years ago
pgp-decrypt.c
pgcrypto: Fix check for buffer size
2 years ago
pgp-encrypt.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-info.c
Dial back -Wimplicit-fallthrough to level 3
5 years ago
pgp-mpi-openssl.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgp-mpi.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-pgsql.c
pgcrypto: Fix incorrect argument vs PG_GETARG*() mappings
2 years ago
pgp-pubdec.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgp-pubenc.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-pubkey.c
Remove custom memory allocation layer in pgcrypto
5 years ago
pgp-s2k.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
pgp.c
pgcrypto: Remove unused code
3 years ago
pgp.h
Add trailing commas to enum definitions
2 years ago
px-crypt.c
Make the order of the header file includes consistent in contrib modules.
6 years ago
px-crypt.h
Harmonize parameter names in contrib code.
3 years ago
px-hmac.c
Remove custom memory allocation layer in pgcrypto
5 years ago
px.c
Remove redundant memset call following palloc0
3 years ago
px.h
Harmonize parameter names in contrib code.
3 years ago