aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2020-12-25 11:00:32 -0500
committerBruce Momjian <bruce@momjian.us>2020-12-25 11:00:32 -0500
commit945083b2f7e6c19c8921c655cac6778acb1e3e03 (patch)
treeae700bbdf9d4216909cc0ab3a15e387e615a74a8 /src
parent978f869b992f9fca343e99d6fdb71073c76e869a (diff)
downloadpostgresql-945083b2f7e6c19c8921c655cac6778acb1e3e03.tar.gz
postgresql-945083b2f7e6c19c8921c655cac6778acb1e3e03.zip
Fix return value and const declaration from commit 978f869b99
This fixes the non-OpenSSL compile case. Reported-by: buildfarm member sifaka Backpatch-through: master
Diffstat (limited to 'src')
-rw-r--r--src/common/cipher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/cipher.c b/src/common/cipher.c
index e42d9844492..a05d8b63239 100644
--- a/src/common/cipher.c
+++ b/src/common/cipher.c
@@ -19,7 +19,7 @@
#include "common/cipher.h"
-static cipher_failure(void);
+static void cipher_failure(void);
PgCipherCtx *
pg_cipher_ctx_create(int cipher, uint8 *key, int klen, bool enc)
@@ -46,12 +46,12 @@ bool
pg_cipher_decrypt(PgCipherCtx *ctx, const unsigned char *ciphertext,
const int inlen, unsigned char *plaintext, int *outlen,
const unsigned char *iv, const int ivlen,
- const unsigned char *intag, const int taglen)
+ unsigned char *intag, const int taglen)
{
cipher_failure();
}
-static
+static void
cipher_failure(void)
{
#ifndef FRONTEND