Skip to content

Commit 945083b

Browse files
committed
Fix return value and const declaration from commit 978f869
This fixes the non-OpenSSL compile case. Reported-by: buildfarm member sifaka Backpatch-through: master
1 parent 978f869 commit 945083b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/cipher.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "common/cipher.h"
2121

22-
static cipher_failure(void);
22+
static void cipher_failure(void);
2323

2424
PgCipherCtx *
2525
pg_cipher_ctx_create(int cipher, uint8 *key, int klen, bool enc)
@@ -46,12 +46,12 @@ bool
4646
pg_cipher_decrypt(PgCipherCtx *ctx, const unsigned char *ciphertext,
4747
const int inlen, unsigned char *plaintext, int *outlen,
4848
const unsigned char *iv, const int ivlen,
49-
const unsigned char *intag, const int taglen)
49+
unsigned char *intag, const int taglen)
5050
{
5151
cipher_failure();
5252
}
5353

54-
static
54+
static void
5555
cipher_failure(void)
5656
{
5757
#ifndef FRONTEND

0 commit comments

Comments
 (0)