diff options
author | stephanie sappho lenzo <sappho@sappho.io> | 2024-01-04 04:39:43 -0500 |
---|---|---|
committer | stephanie sappho lenzo <sappho@sappho.io> | 2024-01-04 04:39:43 -0500 |
commit | acd7ff5be794ff54293883819a540a27b6df4d49 (patch) | |
tree | 5494d654a0772fd553befdf06e820aaa6efb0d4e /extension/opensslmanager.cpp | |
parent | 3b81c9e0446410d0577f10f87bf0cb27210f918b (diff) |
fully deprecate old functions and add warnings squash for fopen/sprintf
Diffstat (limited to 'extension/opensslmanager.cpp')
-rw-r--r-- | extension/opensslmanager.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
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; |