Skip to content

mbedtls: fix CURLOPT_SSLCERT_BLOB - #8146

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/mbedtls-ssl_cert_blob
Closed

bagder wants to merge 1 commit into
masterfrom
bagder/mbedtls-ssl_cert_blob

Conversation

@bagder

@bagder bagder commented Dec 14, 2021

Copy link
Copy Markdown
Member

The memory passed to mbedTLS for this needs to be null terminated.

Reported-by: Florian Van Heghe

The memory passed to mbedTLS for this needs to be null terminated.

Reported-by: Florian Van Heghe
@bagder bagder added the TLS label Dec 14, 2021
@bagder bagder closed this in 867ad1c Dec 14, 2021
@bagder
bagder deleted the bagder/mbedtls-ssl_cert_blob branch December 14, 2021 14:37
jay pushed a commit to jay/curl that referenced this pull request Jan 12, 2022
- Increase the buffer length passed to mbedtls_x509_crt_parse to account
  for the null byte appended to the temporary blob.

Follow-up to 867ad1c which uses a null terminated copy of the
certificate blob, because mbedtls_x509_crt_parse requires PEM data
to be null terminated.

Ref: curl@867ad1c#r63439893
Ref: curl#8146

Closes #xxxx
jay pushed a commit that referenced this pull request Jan 15, 2022
- Increase the buffer length passed to mbedtls_x509_crt_parse to account
  for the null byte appended to the temporary blob.

Follow-up to 867ad1c which uses a null terminated copy of the
certificate blob, because mbedtls_x509_crt_parse requires PEM data
to be null terminated.

Ref: 867ad1c#r63439893
Ref: #8146

Closes #8260
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.

1 participant