Skip to content

RDK-58398:Fix curl dependency for some API's#136

Merged
shibu-kv merged 3 commits intodevelopfrom
topic/RDK-58398
Jul 21, 2025
Merged

RDK-58398:Fix curl dependency for some API's#136
shibu-kv merged 3 commits intodevelopfrom
topic/RDK-58398

Conversation

@shivabhaskar
Copy link
Copy Markdown
Contributor

Reason for change: curl_url_strerror() is available from 7.80.0 added logic to check the version for using certain curl API's
ref : https://curl.se/changes.html#7_80_0[curl_url_strerror()](https://curl.se/bug/?i=7605)
Test Procedure: Verify that the URL is using
Risks: Low

Reason for change: curl_url_strerror() is available from 7.80.0 added logic to check the version for using certain API's
Test Procedure: Verify that the URL is using
Risks: Low
@shivabhaskar shivabhaskar requested a review from a team July 21, 2025 16:43
#endif


#if LIBCURL_VERSION_NUM >= 0x075000 /* 7.80.0 */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can limit the logging to error code alone if the curl_url_strerror is only available in certain versions and higher up.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have commented the code.


#if LIBCURL_VERSION_NUM >= 0x075000 /* 7.80.0 */
#define T2_CURL_APPENDREQUEST_ERROR(rc) \
do { \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessarily needed in this context to wrap in do while construct as we have only one if check here. But considering the defensive coding techniques, is okay to retain.

Reason for change: Adress review comments, avoid version dependency for the macro.
Test Procedure: Verify that the URL is using
Risks: Low
shibu-kv
shibu-kv previously approved these changes Jul 21, 2025
Reason for change: Adress review comments, avoid version dependency for the macro.
Test Procedure: Verify that the URL is using
Risks: Low
@shibu-kv shibu-kv merged commit e48f64b into develop Jul 21, 2025
14 checks passed
@shibu-kv shibu-kv deleted the topic/RDK-58398 branch August 14, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants