Eclipse OpenSSL lib linker error [message #1750834] |
Thu, 29 December 2016 19:03 |
Shan Cao Messages: 1 Registered: December 2016 |
Junior Member |
|
|
int IIOTBusCommsPacket::getTheHASHfromBuffer( const unsigned char *message, size_t message_len, unsigned char *digest, unsigned int *digest_len)
{
EVP_MD_CTX *mdctx;
int status = STATUS_ERROR;
if( *digest_len < EVP_MD_size(EVP_sha256()))
return status;
if((mdctx = EVP_MD_CTX_create()) == NULL)
return status;;
if(1 != EVP_DigestInit_ex(mdctx, EVP_sha256(), NULL))
return status;
if(1 != EVP_DigestUpdate(mdctx, message, message_len))
return status;
if(1 != EVP_DigestFinal_ex(mdctx, digest, digest_len))
return status;
EVP_MD_CTX_destroy(mdctx);
return STATUS_OK;
}
|
|
|
Re: Eclipse OpenSSL lib linker error [message #1750871 is a reply to message #1750834] |
Fri, 30 December 2016 13:14 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
You need to supply more information than posting a piece of code and saying you have an unspecific problem if you are looking for help.
What is the actual problem?
That means posting the actual error messages.
The build log showing the link command and the subsequent errors and other messages will go a long way toward analyzing your problem.
We will also need to know the build target OS and the build OS if different than the target.
In general, if you are having link problems, you likely didn't supply the linker with necessary library information such as path and library name or gave the information in the wrong order. That's about all that can be said without knowing the actual situation.
|
|
|
Powered by
FUDForum. Page generated in 0.03771 seconds