From 9b3abe7fb9b3381fbdf6c4b27279b564249cab5b Mon Sep 17 00:00:00 2001 From: Neo <321592+Neo-Desktop@users.noreply.github.com> Date: Sun, 4 Jun 2023 12:26:58 -0700 Subject: [PATCH] fix server2k3 compile error --- src/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index d278190..bfbfe10 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -40,7 +40,7 @@ bool verifyServerKey(EC_GROUP *eCurve, EC_POINT *generator, EC_POINT *publicKey, DWORD osFamily, hash, sig[2], prefix; DWORD bKey[4]{}; - unbase24(bKey, cdKey); + unbase24((BYTE *)bKey, cdKey); // Extract segments from the bytecode and reverse the signature. unpackServer(&osFamily, &hash, sig, &prefix, bKey); @@ -306,7 +306,7 @@ void generateServerKey(char *pKey, EC_GROUP *eCurve, EC_POINT *generator, BIGNUM BN_free(b); } while (bSig[1] >= 0x40000000); - base24(pKey, bKey); + base24(pKey, (BYTE *)bKey); BN_CTX_free(ctx); EC_POINT_free(r);