Build is broken on gcc 6.2.1 / openssl 1.1.0c / Debian stretch
$ ./configure && make
Liunx detected. Have you considered switching to BSD?
Configuration successful. This does not mean it will build.
If you are missing gcc, or required libraries/headers, you
will need to install them first.
cc -O3 -I/usr/include -I/usr/local/include -L/usr/lib -L/usr/local/lib -Wall -o src/math.o -c src/math.c
src/math.c: In function ‘easygen’:
src/math.c:30:5: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations]
rsa = RSA_generate_key(num, 3, NULL, NULL);
^~~
In file included from /usr/include/openssl/asn1.h:15:0,
from /usr/include/openssl/rsa.h:16,
from src/math.h:24,
from src/math.c:3:
/usr/include/openssl/rsa.h:193:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
src/math.c: In function ‘sane_key’:
src/math.c:67:17: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
BN_sub(p1, rsa->p, BN_value_one()); // p - 1
^~
src/math.c:78:10: error: dereferencing pointer to incomplete type ‘BIGNUM {aka struct bignum_st}’
if(!chk->neg)
^~
Makefile:44: recipe for target 'src/math.o' failed
make: *** [src/math.o] Error 1
Confirmed
Confirmed again
I have the same problem (gcc 6.3.0).... shallot code is sabotaged by spies.
Let's not fearmonger...
Anyway, I had hoped with katmagic taking over that (s)he or someone would have converted it to a proper build system (e.g. Autoconf), but it looks like nothing has happened. I'll take a look at it and try at the very least to get it building and producing the correct key/hash pairs, but it might be a few months before I get to this as I have a few other projects at higher priority in my queue, and very little time to work on any of them.
The libssl API changed with version 1.1.x.
https://github.com/ReclaimYourPrivacy/eschalot builds and is probably a better bet.
@erikd if the API changed, shouldn't you just install libssl1.0-dev?
Worked for me…
I forked the project and updated it to OpenSSL 1.1.0, hope it helps you :) https://github.com/katmagic/Shallot/pull/37
Liunx?