I. Installation
First download the original opensslfile, such as openssl-1.0.1f.tar.gz
Copy the file to the workspace Directory, which is generally a personal folder under/home.
Decompress the file tar zxvf openssl-1.0.1f.tar.gz
Enter the cd openssl-1.0.1f in the file
Configuration: copy the generated openssL file to the default system folder. In this step, you only need to copy the following code: "./config -- prefix =/usr/local/openssl shared"
Run the make command: make
Use root permission to install openssL: sudo make install
So far, openssL installation is complete. Two of the completed directories are important. One is the include package, which can be viewed during external calls. h header file. The other is the lib package, which contains static and shared file packages for ssl and crypto. The second step is to configure these two files.
2. How to configure in eclipse
The include and lib variables must be configured in eclipse.
Create a C language test project, such as openssL_test, right-click the attribute-C/C ++ Build-settings, and click the first red box on the right of the graph, that is, include under gcc c Compiler, make the following settings. The path here is the include position above.
Click libraries under gcc c Linker and make the following settings:
Ssl and crypto are manually added, but they are not arbitrarily written. In fact, these two variables correspond to libssl under the/usr/local/openssl/lib directory. so and libcrypto. so file.
In addition, if the project is of the C ++ type, there will be a G ++ compiler setting option, which can be set in the same way as that of GCC.
OpenSSL details: click here
OpenSSL: click here
OpenSSL TLS heartbeat read remote information leakage (CVE-2014-0160)
Severe OpenSSL bug allows attackers to read 64 KB of memory, fixed in half an hour in Debian
OpenSSL "heartbleed" Security Vulnerability
Provides FTP + SSL/TLS authentication through OpenSSL and implements secure data transmission.