Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upcurl_easy_getinfo with CURLINFO_TLS_SSL_PTR not able to get compiled #1524
Comments
This comment has been minimized.
This comment has been minimized.
It looks like it has to do with the gcc typechecking. Since CURLINFO_TLS_SSL_PTR is internally The type should be |
This comment has been minimized.
This comment has been minimized.
Below is the code snippet Please let me know how to resolve the compilation issue when use "struct curl_tlssessioninfo" |
This comment has been minimized.
This comment has been minimized.
I don't think that |
This comment has been minimized.
This comment has been minimized.
This cannot be the cause of segfault. Even it occur if i just access the first character of tls_ssl->data[0]. It seems the type should be struct curl_tlssessioninfo. How to solve the compilation issue? |
added a commit
that referenced
this issue
Jun 1, 2017
bagder
referenced this issue
Jun 1, 2017
Closed
typecheck-gcc.h: don't check non-slist arguments for slist compliance #1525
This comment has been minimized.
This comment has been minimized.
See #1525 for my suggested fix. |
gnanagurun commentedJun 1, 2017
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