jtulak / RdRand

Library for RNG with Intel's RdRand usage.
Other
6 stars 2 forks source link

Please add support for OpenSSL_1.1.0 #9

Closed jirka-h closed 5 years ago

jirka-h commented 5 years ago

On Fedora29 I'm getting this error:

src/./librdrand-aes.private.h:53:20: error: field ‘en’ has incomplete type
     EVP_CIPHER_CTX en;
                    ^~

This is because the OPENSSL API has changed:

https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes

Application code now has to use pointers, and cannot allocate objects directly on the stack. For instance if the old code did:

$make
make  all-am
make[1]: Entering directory '/home/jhladky/GIT/RdRand'
depbase=`echo src/librdrand-aes.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -g -O2 -MT src/librdrand-aes.lo -MD -MP -MF $depbase.Tpo -c -o src/librdrand-aes.lo src/librdrand-aes.c &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -g -O2 -MT src/librdrand-aes.lo -MD -MP -MF src/.deps/librdrand-aes.Tpo -c src/librdrand-aes.c  -fPIC -DPIC -o src/.libs/librdrand-aes.o
In file included from src/librdrand-aes.c:32:
src/./librdrand-aes.private.h:53:20: error: field ‘en’ has incomplete type
     EVP_CIPHER_CTX en;
                    ^~
make[1]: *** [Makefile:614: src/librdrand-aes.lo] Error 1
make[1]: Leaving directory '/home/jhladky/GIT/RdRand'
make: *** [Makefile:414: all] Error 2
jirka-h commented 5 years ago

I'm sorry, I was using another version from another repo. There is no issue. Closing.