mbedtls-alt/dev-alt: complement cloning capability

Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
makejian 2023-10-11 22:30:09 +08:00 committed by Xiang Xiao
parent fff767e2ef
commit b05c967ae6

View file

@ -94,5 +94,5 @@ int cryptodev_clone(FAR cryptodev_context_t *dst,
{
dst->session = src->session;
dst->crypt = src->crypt;
return cryptodev_get_session(dst);
return dup2(src->fd, dst->fd);
}