1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-21 12:49:10 +00:00

Make pnUtUuid compile on *nix.

This commit is contained in:
Darryl Pogue
2012-01-29 00:18:26 -08:00
parent 65b75f0667
commit 945e1ac37b
11 changed files with 26 additions and 32 deletions

View File

@ -46,6 +46,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
***/
#include "pnUtCrypt.h"
#include "pnUtStr.h"
#include "pnUtTime.h"
#include <openssl/md5.h>
#include <openssl/sha.h>
@ -360,13 +362,13 @@ void CryptHashPasswordChallenge (
const ShaDigest & namePassHash,
ShaDigest * challengeHash
) {
#include <pshpack1.h>
#pragma pack(push, 1)
struct {
uint32_t clientChallenge;
uint32_t serverChallenge;
ShaDigest namePassHash;
} buffer;
#include <poppack.h>
#pragma pack(pop)
buffer.clientChallenge = clientChallenge;
buffer.serverChallenge = serverChallenge;
buffer.namePassHash = namePassHash;