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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user