8000 Remove assertion from AesInit · percona/postgres@89afb46 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89afb46

Browse files
committed
Remove assertion from AesInit
None of our other init functions does this, and without cassert the compiler complains about the initialized value of initialized is unused.
1 parent 61448f2 commit 89afb46

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

contrib/pg_tde/src/encryption/enc_aes.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,12 @@ static const EVP_CIPHER *cipher_ctr_ecb = NULL;
4848
void
4949
AesInit(void)
5050
{
51-
static bool initialized = false;
52-
53-
Assert(!initialized);
54-
5551
OpenSSL_add_all_algorithms();
5652
ERR_load_crypto_strings();
5753

5854
cipher_cbc = EVP_aes_128_cbc();
5955
cipher_gcm = EVP_aes_128_gcm();
6056
cipher_ctr_ecb = EVP_aes_128_ecb();
61-
62-
initialized = true;
6357
}
6458

6559
static void

0 commit comments

Comments
 (0)
0