From 8c0fcc3c262b2ac167509b50776dfacfbedcbdce Mon Sep 17 00:00:00 2001 From: William Brown Date: Mon, 28 Aug 2017 10:05:06 +1000 Subject: [PATCH] Ticket 49364 - incorrect function declaration. Bug Description: The pbkdf2 calculate iterations function had a missing argument in the header definition. This would not affect 64bit platforms but did affect 32bit environments because of the way that uint64_t is structured on these platforms. Fix Description: Correct the header definition to include the time argument. https://pagure.io/389-ds-base/issue/49364 Author: wibrown Review by: ??? --- ldap/servers/plugins/pwdstorage/pwdstorage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap/servers/plugins/pwdstorage/pwdstorage.h b/ldap/servers/plugins/pwdstorage/pwdstorage.h index ad877df..f495349 100644 --- a/ldap/servers/plugins/pwdstorage/pwdstorage.h +++ b/ldap/servers/plugins/pwdstorage/pwdstorage.h @@ -95,7 +95,7 @@ int pbkdf2_sha256_pw_cmp(const char *userpwd, const char *dbpwd); /* For testing pbkdf2 only */ uint64_t pbkdf2_sha256_benchmark_iterations(); -PRUint32 pbkdf2_sha256_calculate_iterations(); +PRUint32 pbkdf2_sha256_calculate_iterations(uint64_t time_nsec); /* Utility functions */ PRUint32 pwdstorage_base64_decode_len(const char *encval, PRUint32 enclen); -- 1.8.3.1