mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-19 00:51:13 +02:00
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
* Restored SHA1 hash code in 'lib/rdhash.cpp'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -25033,3 +25033,5 @@
|
|||||||
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Disabled 'stringop-overflow' warnings in
|
* Disabled 'stringop-overflow' warnings in
|
||||||
'apis/rivwebcapi/rivwebcapi/' to avoid false warnings.
|
'apis/rivwebcapi/rivwebcapi/' to avoid false warnings.
|
||||||
|
2025-04-26 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Restored SHA1 hash code in 'lib/rdhash.cpp'.
|
||||||
|
@@ -33,10 +33,6 @@
|
|||||||
|
|
||||||
QString __RDSha1Hash_MakePasswordHash(const QString &secret,const QString &salt)
|
QString __RDSha1Hash_MakePasswordHash(const QString &secret,const QString &salt)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
// FIXME: Reimplement this using modern methods!
|
|
||||||
//
|
|
||||||
/*
|
|
||||||
SHA_CTX ctx;
|
SHA_CTX ctx;
|
||||||
unsigned char md[SHA_DIGEST_LENGTH];
|
unsigned char md[SHA_DIGEST_LENGTH];
|
||||||
|
|
||||||
@@ -50,17 +46,11 @@ QString __RDSha1Hash_MakePasswordHash(const QString &secret,const QString &salt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
*/
|
|
||||||
return QString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString RDSha1HashData(const QByteArray &data)
|
QString RDSha1HashData(const QByteArray &data)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
// FIXME: Reimplement this using modern methods!
|
|
||||||
//
|
|
||||||
/*
|
|
||||||
SHA_CTX ctx;
|
SHA_CTX ctx;
|
||||||
unsigned char md[SHA_DIGEST_LENGTH];
|
unsigned char md[SHA_DIGEST_LENGTH];
|
||||||
QString ret;
|
QString ret;
|
||||||
@@ -73,17 +63,11 @@ QString RDSha1HashData(const QByteArray &data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
*/
|
|
||||||
return QString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString RDSha1HashFile(const QString &filename,bool throttle)
|
QString RDSha1HashFile(const QString &filename,bool throttle)
|
||||||
{
|
{
|
||||||
//
|
|
||||||
// FIXME: Reimplement this using modern methods!
|
|
||||||
//
|
|
||||||
/*
|
|
||||||
QString ret;
|
QString ret;
|
||||||
SHA_CTX ctx;
|
SHA_CTX ctx;
|
||||||
int fd=-1;
|
int fd=-1;
|
||||||
@@ -109,8 +93,6 @@ QString RDSha1HashFile(const QString &filename,bool throttle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
*/
|
|
||||||
return QString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user