PeterMosmans / openssl

'Extra featured' OpenSSL with ChaCha20 and Poly1305 support
https://onwebsecurity.com/pages/openssl.html
Other
92 stars 18 forks source link

Include openssl config for OPENSSL_NO_POLY1305 #32

Closed ralphdolmans closed 8 years ago

ralphdolmans commented 8 years ago

Hi Peter,

Compiling with OPENSSL_NO_POLY1305 set fails for me on both Ubuntu and FreeBSD. poly1305test.c does not detect the no-poly flag and thus includes poly1305.h, which (correctly) fails.

cc -I.. -I../include -DOPENSSL_THREADS -pthread -D_THREAD_SAFE -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM -c poly1305test.c In file included from poly1305test.c:56: ../include/openssl/poly1305.h:65:2: error: #error Poly1305 support is disabled. *\ [poly1305test.o] Error code 1

PeterMosmans commented 8 years ago

Ah, now I see. Thanks for the explanation and PR . Merged