Hi Daniel,

I am using libcurl to connect to a server over HTTPS. I had followed the sample curlx.c for my implementation which worked smoothly in my ubuntu 14.04. Recently I had to upgrade OpenSSL to 1.1.0g. Now I am unable to compile my application as well as curlx.c. It fails with the following message.

./docs/examples/curlx.c: In function ‘ssl_app_verify_callback’:
./docs/examples/curlx.c:199:15: error: dereferencing pointer to incomplete type
   if(ok && ctx->cert) {
               ^
./docs/examples/curlx.c:202:37: error: dereferencing pointer to incomplete type
       X509_print_ex(p->errorbio, ctx->cert, 0, 0);
                                     ^
./docs/examples/curlx.c:204:32: error: dereferencing pointer to incomplete type
     accessinfo = my_get_ext(ctx->cert, p->accesstype, NID_sinfo_access);
                                ^
./docs/examples/curlx.c:211:40: error: dereferencing pointer to incomplete type
     else if(accessinfo = my_get_ext(ctx->cert, p->accesstype,

I googled it and found that OpenSSL has introduced data hiding and I feel that it is causing the error. Unfortuantly I could not find any wrapper function to retrieve the cert from X509_STORE_CTX.  If somebody has already found a solution, that would be helpful.

--
Thanks & Regards,
**Krishnaraj D


"Disclaimer: This message is being sent from Kalki Communication Technologies
Pvt Ltd (KALKITECH). and may contain information which is confidential or
privileged. If you are not the intended recipient, please advise the sender
immediately by reply e-mail and delete this message and any attachments
without retaining a copy. Any unauthorized use of the content of this message
can expose the responsible party to civil and/or criminal penalties,
and may constitute a more serious offense. Further the company does not accept
liability for any errors, omissions, viruses or computer problems
experienced as a result of this transmission. If you have received this
message in error, notice is hereby given that no representation, contract or other binding obligation shall be created by this e-mail."
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to