Precompiled-OpenSSL-Windows | Precompiled OpenSSL | TLS library
kandi X-RAY | Precompiled-OpenSSL-Windows Summary
kandi X-RAY | Precompiled-OpenSSL-Windows Summary
Precompiled OpenSSL (Include Static and Dynamic Library)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Precompiled-OpenSSL-Windows
Precompiled-OpenSSL-Windows Key Features
Precompiled-OpenSSL-Windows Examples and Code Snippets
Community Discussions
Trending Discussions on Precompiled-OpenSSL-Windows
QUESTION
I need to use openssl library for my encryption .
I read this threads :
- Openssl aes.h [Linker error] undefined reference to
- https://msdn.microsoft.com/en-us/library/799kze2z.aspx?f=255&MSPPError=-2147217396
What I did :
- Downloaded Pre-Compiled Library of OpenSSL for VS2012 from here .
Added this addresses in :
General > Additional Include Directories : openssl-1.1.0h\openssl-1.1.0f-vs2012\include
Linker > Additional Include Directories : openssl-1.1.0h\openssl-1.1.0f-vs2012\lib
I used Default sample of openssl but I get this errors :
1>AES_Encryption 2.obj : error LNK2001: unresolved external symbol _AES_set_encrypt_key 1>AES_Encryption 2.obj : error LNK2001: unresolved external symbol _AES_decrypt 1>AES_Encryption 2.obj : error LNK2001: unresolved external symbol _AES_encrypt 1>AES_Encryption 2.obj : error LNK2001: unresolved external symbol _AES_set_decrypt_key
What i did wrong ?
edit : and here's my simple code :
...ANSWER
Answered 2018-May-02 at 10:14Your c file compiles fine, but it doesn't link correctly because you didn't instruct the linker to link with the necessary .lib files.
You need to put #pragma comment(lib, "libssl.lib")
or something similar (not sure about the name of the actuel .lib file) into your source file.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Precompiled-OpenSSL-Windows
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page