Skip to content

curl_easy_getinfo with CURLINFO_TLS_SSL_PTR not able to get compiled #1524

@gnanagurun

Description

@gnanagurun

I did this

curl_easy_getinfo with CURLINFO_TLS_SSL_PTR gives compilation error - "call to '_curl_easy_getinfo_err_curl_slist' declared with attribute warning: curl_easy_getinfo expects a pointer to 'struct curl_slist *' for this info". I just passing the address of this variable struct curl_tlssessioninfo tls_ssl" to curl_easy_getinfo. To solve this compilation issue, i have tried to replace this with "struct curl_slist". Able to compile with this change but while running it gives segmentation fault even there is NULL checking in my code.

I expected the following

curl/libcurl version

libcurl version: 7.52.1 / OpenSSL version: 1.1.0d
[curl -V output]

operating system

Centos 6.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions