Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0848cf4f
Commit
0848cf4f
authored
Dec 25, 2020
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Really fix the dummy implementations in cipher.c.
945083b2
wasn't enough to silence compiler warnings.
parent
8e59813e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/common/cipher.c
src/common/cipher.c
+8
-5
No files found.
src/common/cipher.c
View file @
0848cf4f
...
...
@@ -21,10 +21,12 @@
static
void
cipher_failure
(
void
)
pg_attribute_noreturn
();
PgCipherCtx
*
pg_cipher_ctx_create
(
int
cipher
,
uint8
*
key
,
int
klen
,
bool
enc
)
{
cipher_failure
();
return
NULL
;
/* keep compiler quiet */
}
void
...
...
@@ -40,6 +42,7 @@ pg_cipher_encrypt(PgCipherCtx *ctx, const unsigned char *plaintext,
unsigned
char
*
outtag
,
const
int
taglen
)
{
cipher_failure
();
return
false
;
/* keep compiler quiet */
}
bool
...
...
@@ -49,6 +52,7 @@ pg_cipher_decrypt(PgCipherCtx *ctx, const unsigned char *ciphertext,
unsigned
char
*
intag
,
const
int
taglen
)
{
cipher_failure
();
return
false
;
/* keep compiler quiet */
}
static
void
...
...
@@ -56,12 +60,11 @@ cipher_failure(void)
{
#ifndef FRONTEND
ereport
(
ERROR
,
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
(
errmsg
(
"cluster file encryption is not supported because OpenSSL is not supported by this build"
),
errhint
(
"Compile with --with-openssl to use this feature."
))));
(
errcode
(
ERRCODE_CONFIG_FILE_ERROR
),
(
errmsg
(
"cluster file encryption is not supported because OpenSSL is not supported by this build"
),
errhint
(
"Compile with --with-openssl to use this feature."
))));
#else
fprintf
(
stderr
,
_
(
"cluster file encryption is not supported because OpenSSL is not supported by this build"
));
exit
(
1
);
#endif
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment