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
Show 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 @@
...
@@ -21,10 +21,12 @@
static
void
cipher_failure
(
void
)
pg_attribute_noreturn
();
static
void
cipher_failure
(
void
)
pg_attribute_noreturn
();
PgCipherCtx
*
PgCipherCtx
*
pg_cipher_ctx_create
(
int
cipher
,
uint8
*
key
,
int
klen
,
bool
enc
)
pg_cipher_ctx_create
(
int
cipher
,
uint8
*
key
,
int
klen
,
bool
enc
)
{
{
cipher_failure
();
cipher_failure
();
return
NULL
;
/* keep compiler quiet */
}
}
void
void
...
@@ -40,6 +42,7 @@ pg_cipher_encrypt(PgCipherCtx *ctx, const unsigned char *plaintext,
...
@@ -40,6 +42,7 @@ pg_cipher_encrypt(PgCipherCtx *ctx, const unsigned char *plaintext,
unsigned
char
*
outtag
,
const
int
taglen
)
unsigned
char
*
outtag
,
const
int
taglen
)
{
{
cipher_failure
();
cipher_failure
();
return
false
;
/* keep compiler quiet */
}
}
bool
bool
...
@@ -49,6 +52,7 @@ pg_cipher_decrypt(PgCipherCtx *ctx, const unsigned char *ciphertext,
...
@@ -49,6 +52,7 @@ pg_cipher_decrypt(PgCipherCtx *ctx, const unsigned char *ciphertext,
unsigned
char
*
intag
,
const
int
taglen
)
unsigned
char
*
intag
,
const
int
taglen
)
{
{
cipher_failure
();
cipher_failure
();
return
false
;
/* keep compiler quiet */
}
}
static
void
static
void
...
@@ -64,4 +68,3 @@ cipher_failure(void)
...
@@ -64,4 +68,3 @@ cipher_failure(void)
exit
(
1
);
exit
(
1
);
#endif
#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