From 5950a9f7ab24f63e61ceb9ae28137c36984b7504 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Sat, 26 Apr 2025 19:30:27 -0400 Subject: [PATCH] 2025-04-26 Fred Gleason * Restored SHA1 hash code in 'lib/rdhash.cpp'. Signed-off-by: Fred Gleason --- ChangeLog | 2 ++ lib/rdhash.cpp | 18 ------------------ 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index c5284952..3beb834c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25033,3 +25033,5 @@ 2025-04-26 Fred Gleason * Disabled 'stringop-overflow' warnings in 'apis/rivwebcapi/rivwebcapi/' to avoid false warnings. +2025-04-26 Fred Gleason + * Restored SHA1 hash code in 'lib/rdhash.cpp'. diff --git a/lib/rdhash.cpp b/lib/rdhash.cpp index 05378b11..736ea653 100644 --- a/lib/rdhash.cpp +++ b/lib/rdhash.cpp @@ -33,10 +33,6 @@ QString __RDSha1Hash_MakePasswordHash(const QString &secret,const QString &salt) { - // - // FIXME: Reimplement this using modern methods! - // - /* SHA_CTX ctx; unsigned char md[SHA_DIGEST_LENGTH]; @@ -50,17 +46,11 @@ QString __RDSha1Hash_MakePasswordHash(const QString &secret,const QString &salt) } return ret; - */ - return QString(); } QString RDSha1HashData(const QByteArray &data) { - // - // FIXME: Reimplement this using modern methods! - // - /* SHA_CTX ctx; unsigned char md[SHA_DIGEST_LENGTH]; QString ret; @@ -73,17 +63,11 @@ QString RDSha1HashData(const QByteArray &data) } return ret; - */ - return QString(); } QString RDSha1HashFile(const QString &filename,bool throttle) { - // - // FIXME: Reimplement this using modern methods! - // - /* QString ret; SHA_CTX ctx; int fd=-1; @@ -109,8 +93,6 @@ QString RDSha1HashFile(const QString &filename,bool throttle) } return ret; - */ - return QString(); }