Skip to content

Commit

Permalink
Fix appveyer error (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanabi authored Jan 28, 2024
1 parent 1a132b2 commit f5eb6ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion docs/man.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4552,7 +4552,6 @@ Parameters available:
(bool) consistent_lock_source - Maintain trigger as lock source in TESTLOCK
(str) cpennies - Currency name, capitalized, plural
(str) cpenny - Currency name, capitalized
(str) create_fail_mesg - Failed player create message
(bool) dark_sleepers - Make sleeping players dark
(bool) dbdump_warning - Enable warnings for upcoming database dumps
(ref) default_room_parent - Place to parent new rooms to
Expand Down
1 change: 0 additions & 1 deletion docs/mufman.html
Original file line number Diff line number Diff line change
Expand Up @@ -7279,7 +7279,6 @@ <h3 id="sysparm">SYSPARM ( s -- s )
(bool) consistent_lock_source - Maintain trigger as lock source in TESTLOCK
(str) cpennies - Currency name, capitalized, plural
(str) cpenny - Currency name, capitalized
(str) create_fail_mesg - Failed player create message
(bool) dark_sleepers - Make sleeping players dark
(bool) dbdump_warning - Enable warnings for upcoming database dumps
(ref) default_room_parent - Place to parent new rooms to
Expand Down
9 changes: 7 additions & 2 deletions src/fbmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,16 @@ PBKDF2_HMAC_SHA_512(const char* pass, const unsigned char* salt,
char* hexResult)
{
unsigned int i;
unsigned char digest[outputBytes];
unsigned char* digest;

digest = (unsigned char*)malloc(outputBytes);

PKCS5_PBKDF2_HMAC(pass, strlen(pass), salt, strlen(salt), iterations,
EVP_sha512(), outputBytes, digest);
for (i = 0; i < sizeof(digest); i++)
for (i = 0; i < outputBytes; i++)
sprintf(hexResult + (i * 2), "%02x", 255 & digest[i]);

free(digest);
}
#endif

Expand Down

0 comments on commit f5eb6ac

Please sign in to comment.