Yet another steampwd.c problem. D=
When I try to compile steampwd.c as it is (after doing some typecasts MSVC++ wants), it gives me a bunch of unresolved external errors:
Code:
testingexe2 error LNK2019: unresolved external symbol _AES_ecb_encrypt referenced in function "void __cdecl myaesdec(struct aes_key_st *,int,int *,char *,char *,char *)" (?myaesdec@@YAXPAUaes_key_st@@HPAHPAD22@Z)
testingexe2 error LNK2019: unresolved external symbol _AES_set_encrypt_key referenced in function "int __cdecl AESPHM_Decrypt(char *,char *,char *)" (?AESPHM_Decrypt@@YAHPAD00@Z)
testingexe2 error LNK2019: unresolved external symbol _EVP_sha1 referenced in function "int __cdecl AESPHM_Decrypt(char *,char *,char *)" (?AESPHM_Decrypt@@YAHPAD00@Z)
testingexe2 error LNK2019: unresolved external symbol _HMAC referenced in function "int __cdecl AESPHM_Decrypt(char *,char *,char *)" (?AESPHM_Decrypt@@YAHPAD00@Z)
testingexe2 error LNK2019: unresolved external symbol _SHA256 referenced in function "void __cdecl AESPHM_GenerateIvFromSeed(char *,char *)" (?AESPHM_GenerateIvFromSeed@@YAXPAD0@Z)
testingexe2 fatal error LNK1120: 5 unresolved externals
If I link dynamically with C:\OpenSSL\lib\libeay32.lib and C:\OpenSSL\lib\ssleay32.lib, everything works fine. However, if I try to link statically (which is what I'm trying to do) with C:\OpenSSL\lib\VC\static\libeay32MD.lib and C:\OpenSSL\lib\VC\static\ssleay32MD.lib, I get these errors:
Code:
testingexe2 error LNK2019: unresolved external symbol __alloca_probe_16 referenced in function _OPENSSL_isservice
testingexe2 error LNK2019: unresolved external symbol __ftol2_sse referenced in function _roundv
which I have no idea how to fix or why they are happening. So my question is, obviously, how can I fix these, or what is another way to link them statically?
Thanks in advance. Also, great source, cryptography seems so hard to me.