Closed Bowser1991 closed 8 years ago
Hi Daniel,
First, I recommend you move to using the new ".props"-style project files, as these are much simpler to deal with. Take a look at any of the .vcxproj files that are now used in the project, such as UefiLib.vcxproj.
Second, you probably don't want: "ClCompile Include="CryptMd4Null.c" as this will compile an "empty" implementation of crypto functions.
Then, make sure you add BaseCryptLib.lib to the
If this doesn't help, I will take a look in a week or so, as I am currently away.
Hi, I tried it again with your suggestions but it is still not working. I think it has to do with the openssl library from which the function SHA256_Update comes from. I compiled the Library for Windows and linked to the ssleay32.lib & libeay32.lib librarys. But there are more errors like:
1>libeay32.lib(asn1_lib.obj) : error LNK2001: unresolved external reference "memcpy". 1>libeay32.lib(obj_lib.obj) : error LNK2001: unresolved external reference "memcpy". 1>libeay32.lib(buf_str.obj) : error LNK2001: unresolved external reference "memcpy".
Kind regards Daniel
Looks like you're missing CryptoPkg\Library\IntrinsicLib as well.
You may also want to look at http://git.infradead.org/users/dwmw2/edk2.git which is from Intel's attempt to get the OpenSSL support for UEFI directly into upstream.
Looka like OpenSSL 1.1.0 will build natively with two fixes from the openssl.git from that git repository, plus this EDK-II fork (which should be merged back to EDK-II shortly).I will make VisualUefi track that project and create project files for building OpenSSL. If it works out, I'll update the project.
With a few changes to the openssl repo, OpensslLib now builds. I will work some more on this tomorrow and contacted Intel/David to get the fixes/clarification upstream as well. Tomorrow I will try to now get BaseCryptoLib building.
Worked with Intel to get openssl into better shape. There are two remaining issues, but I am able to locally build BaseCryptLib, OpensslLib together with Cryptest, and exercise the code paths.
Hi, sorry I was away this weekend thats why i couldn't answer your comments. Yes I saw that i was missing the IntrinsicLib and build that one succussfully but had still trouble compiling the OpenSSL lib.
Thank you for your work on the BaseCryptLib i will test it tomorrow and give you some feedback.
Kind regards Daniel
Hi Daniel,
With the latest work from Intel + two changes to the project file, you should now be able to build all the libraries required. For an example of something using BaseCryptLib, please see Cryptest. Please let me know by filing a new issue if you're experiencing issues building any of these components.
Thanks for your patience, Alex
Hi, I'm having trouble creating the BaseCryptLib. I always get an LNK2001 error in my application project. But the Library compiles without errors
BaseCryptLib.lib(CryptSha256.obj) : error LNK2001: "SHA256_Init" I don't know what I'm doing wrong
This is my Visual Studio Projekt File. I hope you can help me
Kind regards Daniel