Skip to content

Commit

Permalink
Make related code compilable with frontend
Browse files Browse the repository at this point in the history
This commit makes the code around keyring, principal keys and WAL
encryption compilable with frontend tools. Namely:
- Hide everything that isn't compatible and of no use behind
  '#ifndef FRONTEND'
- Redefine code that is needed in both versions but should have
  different code. E.g. error handling, file descriptors and locks
- Make use of frontend lists instead of backend ones where needed.
  • Loading branch information
dAdAbird committed Aug 28, 2024
1 parent 9682fee commit 4602fbf
Show file tree
Hide file tree
Showing 25 changed files with 1,493 additions and 1,240 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ src$(MAJORVERSION)/access/pg_tde_rewrite.o \
src$(MAJORVERSION)/access/pg_tdeam_handler.o \
src/access/pg_tde_ddl.o \
src/access/pg_tde_xlog.o \
src/access/pg_tde_xlog_encrypt.o \
src/transam/pg_tde_xact_handler.o \
src/keyring/keyring_config.o \
src/keyring/keyring_curl.o \
src/keyring/keyring_file.o \
src/keyring/keyring_vault.o \
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ pg_tde_sources = files(
src_version / 'access/pg_tde_visibilitymap.c',
'src/access/pg_tde_ddl.c',
'src/access/pg_tde_xlog.c',
'src/access/pg_tde_xlog_encrypt.c',

'src/encryption/enc_tde.c',
'src/encryption/enc_aes.c',

'src/keyring/keyring_config.c',
'src/keyring/keyring_curl.c',
'src/keyring/keyring_file.c',
'src/keyring/keyring_vault.c',
Expand Down
Loading

0 comments on commit 4602fbf

Please sign in to comment.