Fix return value and const declaration from commit 978f869b99
authorBruce Momjian <[email protected]>
Fri, 25 Dec 2020 16:00:32 +0000 (11:00 -0500)
committerBruce Momjian <[email protected]>
Fri, 25 Dec 2020 16:00:32 +0000 (11:00 -0500)
This fixes the non-OpenSSL compile case.

Reported-by: buildfarm member sifaka
Backpatch-through: master

src/common/cipher.c

index e42d98444920154bca970ebc3ba413c1aba985f9..a05d8b63239d217e64bec59708c66165c3cc0a15 100644 (file)
@@ -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