1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-08 03:42:12 +03:00

Fix mbedTLS issues

Signed-off-by: Noah Miller <mike@stealthwing.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Noah Miller
2024-04-05 21:41:04 +13:00
committed by Jakub Jelen
parent 4a83c50ce9
commit d2a8a464a7
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ int hmac_update(HMACCTX c, const void *data, size_t len)
int hmac_final(HMACCTX c, unsigned char *hashmacbuf, size_t *len)
{
int rc;
*len = (unsigned int)mbedtls_md_get_size(c->md_info);
*len = (unsigned int)mbedtls_md_get_size(c->MBEDTLS_PRIVATE(md_info));
rc = !mbedtls_md_hmac_finish(c, hashmacbuf);
mbedtls_md_free(c);
SAFE_FREE(c);

View File

@@ -1012,7 +1012,7 @@ ssh_string pki_key_to_blob(const ssh_key key, enum ssh_key_e type)
if (d == NULL) {
goto fail;
}
rc = mbedtls_rsa_export_crt(rsa, NULL, NULL, &IQMP)
rc = mbedtls_rsa_export_crt(rsa, NULL, NULL, &IQMP);
if (rc != 0) {
goto fail;
}