Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
algo,
&key);
if (rc < 0) {
- status = NT_STATUS_NO_MEMORY;
+ status = gnutls_error_to_ntstatus(rc, NT_STATUS_INTERNAL_ERROR);
goto out;
}
}
ptext,
&ptext_size);
if (rc < 0 || ptext_size != m_total) {
- DBG_ERR("ERROR: %s\n", gnutls_strerror(rc));
TALLOC_FREE(ptext);
TALLOC_FREE(ctext);
- status = NT_STATUS_INTERNAL_ERROR;
+ status = gnutls_error_to_ntstatus(rc, NT_STATUS_INTERNAL_ERROR);
goto out;
}