From acd7ff5be794ff54293883819a540a27b6df4d49 Mon Sep 17 00:00:00 2001 From: stephanie sappho lenzo Date: Thu, 4 Jan 2024 04:39:43 -0500 Subject: fully deprecate old functions and add warnings squash for fopen/sprintf --- extension/opensslmanager.cpp | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'extension/opensslmanager.cpp') diff --git a/extension/opensslmanager.cpp b/extension/opensslmanager.cpp index d97ea2c..db30886 100644 --- a/extension/opensslmanager.cpp +++ b/extension/opensslmanager.cpp @@ -134,7 +134,7 @@ static void SHA512_File(FILE *file, unsigned char **output, int *outlength) SHA512_CTX c; int i; unsigned char buf[SHA512_FILE_BUFFER_SIZE]; - + SHA512_Init(&c); for (;;) { @@ -230,20 +230,6 @@ bool OpensslManager::HashString(Openssl_Hash algorithm, unsigned char *input, in MD5(input, size, output); *outlength = MD5_DIGEST_LENGTH; return true; - case Openssl_Hash_MD4: - MD4(input, size, output); - *outlength = MD4_DIGEST_LENGTH; - return true; - //case Openssl_Hash_MD2: - // MD2(input, size, output); - // *outlength = MD2_DIGEST_LENGTH; - // return true; - return false; - //case Openssl_Hash_SHA: - // SHA(input, size, output); - // *outlength = SHA_DIGEST_LENGTH; - // return true; - return false; case Openssl_Hash_SHA1: SHA1(input, size, output); *outlength = SHA_DIGEST_LENGTH; @@ -264,10 +250,6 @@ bool OpensslManager::HashString(Openssl_Hash algorithm, unsigned char *input, in SHA512(input, size, output); *outlength = SHA512_DIGEST_LENGTH; return true; - case Openssl_Hash_RIPEMD160: - RIPEMD160(input, size, output); - *outlength = RIPEMD160_DIGEST_LENGTH; - return true; } return false; -- cgit v1.2.3