Thankyou Arm, unfortunately I can only seem to get this to compile on my AMD64 box, which is no good to me. I think I'm missing a trick? I get the same error on ppc and mipsel running Debian:
gcc -Wall -W -O3 -Ilibwbfs -I. -DLARGE_FILES -D_FILE_OFFSET_BITS=64 -c negentig.c -o negentig.o
gcc -Wall -W -O3 -Ilibwbfs -I. -DLARGE_FILES -D_FILE_OFFSET_BITS=64 -c tools.c -o tools.o
tools.c:8:25: error: openssl/md5.h: No such file or directory
tools.c:9:25: error: openssl/aes.h: No such file or directory
tools.c:10:25: error: openssl/sha.h: No such file or directory
tools.c: In function ‘md5’:
tools.c:69: warning: implicit declaration of function ‘MD5’
tools.c: In function ‘sha’:
tools.c:74: warning: implicit declaration of function ‘SHA1’
tools.c: In function ‘aes_cbc_dec’:
tools.c:104: error: ‘AES_KEY’ undeclared (first use in this function)
tools.c:104: error: (Each undeclared identifier is reported only once
tools.c:104: error: for each function it appears in.)
tools.c:104: error: expected ‘;’ before ‘aes_key’
tools.c:106: warning: implicit declaration of function ‘AES_set_decrypt_key’
tools.c:106: error: ‘aes_key’ undeclared (first use in this function)
tools.c:107: warning: implicit declaration of function ‘AES_cbc_encrypt’
tools.c:107: error: ‘AES_DECRYPT’ undeclared (first use in this function)
tools.c: In function ‘aes_cbc_enc’:
tools.c:112: error: ‘AES_KEY’ undeclared (first use in this function)
tools.c:112: error: expected ‘;’ before ‘aes_key’
tools.c:114: warning: implicit declaration of function ‘AES_set_encrypt_key’
tools.c:114: error: ‘aes_key’ undeclared (first use in this function)
tools.c:115: error: ‘AES_ENCRYPT’ undeclared (first use in this function)
tools.c: In function ‘do_yaz0’:
tools.c:335: warning: unused parameter ‘in_size’
make: *** [tools.o] Error 1
Any pointers?