-
I am compiling OpenSSL1.1.1 with Visual Studio 2017 on windows 10. I am getting error: error C2079: 'obj' uses undefined struct 'asn1_object_st' I have included "openssl/ossl_typ.h" in my file. I am giving openssl "-IC:\openssl-1.1.1w\include" option to "cl" command Please let me know how to fix above compilation error.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You cannot declare the ASN1_OBJECT as local variable. You have to allocate it on heap via functions from OpenSSL that create it and pass just pointers to it. |
Beta Was this translation helpful? Give feedback.
You cannot declare the ASN1_OBJECT as local variable. You have to allocate it on heap via functions from OpenSSL that create it and pass just pointers to it.