lib: tls_credentials: return size even if too big

The simple backend returns the size of the credential,
even if it is too big.
The secure backend should do the same,
our libraries depend on this behaviour.

Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
This commit is contained in:
Maximilian Deubel 2025-03-25 17:43:23 +01:00 committed by Benjamin Cabé
commit 916897f59e

View file

@ -401,6 +401,7 @@ int tls_credential_get(sec_tag_t tag, enum tls_credential_type type,
if (info.size > *credlen) {
ret = -EFBIG;
*credlen = info.size;
goto cleanup;
}