aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanie sappho lenzo <sappho@sappho.io>2023-07-13 06:15:52 -0400
committerstephanie sappho lenzo <sappho@sappho.io>2023-07-13 06:15:52 -0400
commit50d99524005b39a9312b82882cb03293766b60bd (patch)
tree15b2848afff62afd1b5971b6555d86c942759489
parentbd33d363f35e1a7f63709df4505ffed341b1550b (diff)
remove completely deprecated openssl stuff
-rw-r--r--opensslmanager.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/opensslmanager.cpp b/opensslmanager.cpp
index 058ce51..2870f6e 100644
--- a/opensslmanager.cpp
+++ b/opensslmanager.cpp
@@ -9,8 +9,8 @@
#define MD5_FILE_BUFFER_SIZE 1024*16
#define MD4_FILE_BUFFER_SIZE 1024*16
-#define MD2_FILE_BUFFER_SIZE 1024*16
-#define SHA_FILE_BUFFER_SIZE 1024*16
+//#define MD2_FILE_BUFFER_SIZE 1024*16
+// #define SHA_FILE_BUFFER_SIZE 1024*16
#define SHA1_FILE_BUFFER_SIZE 1024*16
#define SHA224_FILE_BUFFER_SIZE 1024*16
#define SHA256_FILE_BUFFER_SIZE 1024*16
@@ -63,6 +63,7 @@ static void MD4_File(FILE *file, unsigned char **output, int *outlength)
MD4_Final(*output, &c);
}
+/*
static void MD2_File(FILE *file, unsigned char **output, int *outlength)
{
*output = new unsigned char[MD2_DIGEST_LENGTH];
@@ -102,6 +103,7 @@ static void SHA_File(FILE *file, unsigned char **output, int *outlength)
}
SHA_Final(*output, &c);
}
+*/
static void SHA1_File(FILE *file, unsigned char **output, int *outlength)
{
@@ -281,12 +283,12 @@ bool OpensslManager::HashFile(Openssl_Hash algorithm, FILE *pFile, unsigned char
case Openssl_Hash_MD4:
MD4_File(pFile, output, outlength);
return true;
- case Openssl_Hash_MD2:
- MD2_File(pFile, output, outlength);
- return true;
- case Openssl_Hash_SHA:
- SHA_File(pFile, output, outlength);
- return true;
+ //case Openssl_Hash_MD2:
+ // MD2_File(pFile, output, outlength);
+ // return true;
+ //case Openssl_Hash_SHA:
+ // SHA_File(pFile, output, outlength);
+ // return true;
case Openssl_Hash_SHA1:
SHA1_File(pFile, output, outlength);
return true;
@@ -323,14 +325,14 @@ bool OpensslManager::HashString(Openssl_Hash algorithm, unsigned char *input, in
MD4(input, size, output);
*outlength = MD4_DIGEST_LENGTH;
return true;
- case Openssl_Hash_MD2:
- MD2(input, size, output);
- *outlength = MD2_DIGEST_LENGTH;
- return true;
- case Openssl_Hash_SHA:
- SHA(input, size, output);
- *outlength = SHA_DIGEST_LENGTH;
- return true;
+ //case Openssl_Hash_MD2:
+ // MD2(input, size, output);
+ // *outlength = MD2_DIGEST_LENGTH;
+ // return true;
+ //case Openssl_Hash_SHA:
+ // SHA(input, size, output);
+ // *outlength = SHA_DIGEST_LENGTH;
+ // return true;
case Openssl_Hash_SHA1:
SHA1(input, size, output);
*outlength = SHA_DIGEST_LENGTH;