Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbedtls: add support for CURLOPT_SSLCERT_BLOB and CURLOPT_SSLKEY_BLOB #7157

Closed
wants to merge 2 commits into from
Closed

Conversation

reduf
Copy link
Contributor

@reduf reduf commented May 31, 2021

No description provided.

reduf added 2 commits May 31, 2021 22:12
CURLOPT_SSLCERT_BLOB and CURLOPT_SSLKEY_BLOB weren't usable with
mbedtls backend, so the support was added.
@bagder bagder added the TLS label May 31, 2021
@bagder bagder closed this in 05e0453 Jun 1, 2021
bagder pushed a commit that referenced this pull request Jun 1, 2021
@bagder
Copy link
Member

bagder commented Jun 1, 2021

Thanks!

vszakats added a commit to vszakats/curl that referenced this pull request Mar 19, 2025
While adding support for key blobs, this check got pushed after
the logic and its change of the error code was never checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
vszakats added a commit to vszakats/curl that referenced this pull request Mar 19, 2025
While adding support for key blobs, this check got pushed after
the logic and its change of the error code was never checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
vszakats added a commit to vszakats/curl that referenced this pull request Mar 19, 2025
While adding support for key blobs, this check got pushed after some
logic and its update to the error code was no longer checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
vszakats added a commit to vszakats/curl that referenced this pull request Mar 19, 2025
While adding support for key blobs, this check got pushed after
the logic and its change of the error code was never checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
vszakats added a commit to vszakats/curl that referenced this pull request Mar 20, 2025
While adding support for key blobs, this check got pushed after
the logic and its change of the error code was never checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
vszakats added a commit to vszakats/curl that referenced this pull request Mar 20, 2025
While adding support for key blobs, this check got pushed after
the logic and its change of the error code was never checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
vszakats added a commit to vszakats/curl that referenced this pull request Mar 20, 2025
While adding support for key blobs, this check got pushed after
the logic and its change of the error code was never checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
vszakats added a commit to vszakats/curl that referenced this pull request Mar 20, 2025
While adding support for key blobs, this check got pushed after
the logic and its change of the error code was never checked.

Detected by clang-tidy:
```
Users/runner/work/curl/curl/lib/vtls/mbedtls.c:768:7: error: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores,-warnings-as-errors]
  768 |       ret = MBEDTLS_ERR_PK_TYPE_MISMATCH;
      |       ^
```
https://github.com/curl/curl/actions/runs/13953249156/job/39057979349?pr=16764#step:12:178

Regression from 05e0453 curl#7157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants