sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 344 forks source link

Fail compilation on default setting. (fedora33) #288

Open lighta opened 3 years ago

lighta commented 3 years ago

Hi, I;m getting this compilation error while trying to compile sha : 98df3c31ea1c5e8 libsourcey/src/crypto/include/scy/crypto/hash.h:56:16: error: field ‘_ctx’ has incomplete type ‘EVP_MD_CTX’ {aka ‘evp_md_ctx_st’}

Env: Fedora33, Compiler gcc10. Here attached the compilation log sourcey_compile_error.log

lighta commented 3 years ago

Issue is easily fixable. On libsourcey/src/crypto/include/scy/crypto/hash.h Why do you need to know the concrete type of EVP_MD_CTX ?, why don't do you want this on stack and not simply use the heap / opaque version ?