OPENSSL header files?

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

OPENSSL header files?

Post by ayu »

k so i was compiling a random code...and got a LOT of errors.... something that caught my attention was this

Code: Select all

file.c:18:25: error: openssl/ssl.h: No such file or directory
file.c:19:25: error: openssl/rsa.h: No such file or directory
file.c:20:26: error: openssl/x509.h: No such file or directory
file.c:21:25: error: openssl/evp.h: No such file or directory

Seems like i am missing a few header files...i tried with apt-get install openssl but it seems i already had it... yet it doesn't work...and i don't know what to do to get it...i checked arround on google but didn't find anything interesting.... any tips?
"The best place to hide a tree, is in a forest"

User avatar
malware_writer
forum buddy
forum buddy
Posts: 11
Joined: 15 Jun 2007, 16:00
16
Contact:

Post by malware_writer »

Well, I am no expert but I have tried C/C++ and those ARE headers. If you want those files included try this:

Code: Select all

#include <openssl/ssl.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <openssl/evp.h>
If you dont actually need the files then you can just remove the lines that tries to include them.

If you do need the toolkit, I have included a link to the latest source tarbal. You will need to extract and install it. Instructions are below.

Link: http://www.openssl.org/source/openssl-0.9.8e.tar.gz

**********************
INSTALL INSTRUCTIONS:*
**********************
Type this at the command line:
1)tar -xzvf openssl-0.9.8e.tar.gz
2)cd openssl-0.9.8e.tar.gz
3)su
4)./INSTALL

Not sure if that is correct 100%, if it isnt then let me know. Also step three may require the root password.
I have no worthy signature at the moment.

pseudo_opcode
cyber messiah
cyber messiah
Posts: 1201
Joined: 30 Apr 2006, 16:00
17
Location: 127.0.0.1

Post by pseudo_opcode »

neo how are you trying to compile? sometimes you need to manually tell the compiler about some files.. refer man page for Gcc or whatever you're trying to compile..

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

I know Neo is using Debian, so the problem might be just the path, because afaik OpenSSL is installed per default on Debian already. simply run a search with the locate command for the files and edit the path(s) in the source file if needed.... :wink:

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

malware_writer: I got the errors because they WERE included ^^

Pseudo: gcc -o file file.c -lcrypto (will confirm the line later, not on nix atm)

b_b: I will have a look ^^
"The best place to hide a tree, is in a forest"

User avatar
malware_writer
forum buddy
forum buddy
Posts: 11
Joined: 15 Jun 2007, 16:00
16
Contact:

Post by malware_writer »

neo130 wrote:malware_writer: I got the errors because they WERE included ^^

Pseudo: gcc -o file file.c -lcrypto (will confirm the line later, not on nix atm)

b_b: I will have a look ^^
I wasnt sure if they were included accidentally and you didnt know, or what. But anyways, good luck.

Post Reply