git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 978f869)
Fix return value and const declaration from commit 978f869b99
2020年12月25日 16:00:32 +0000 (11:00 -0500)
2020年12月25日 16:00:32 +0000 (11:00 -0500)
This fixes the non-OpenSSL compile case.

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


diff --git a/src/common/cipher.c b/src/common/cipher.c
index e42d98444920154bca970ebc3ba413c1aba985f9..a05d8b63239d217e64bec59708c66165c3cc0a15 100644 (file)
--- 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
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /