[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Nov 20 13:52:54 CET 2018
Nikos Mavrogiannopoulos started a new discussion on lib/auth/cert.c:
> - find_x509_client_cert(session, cred, _data, _data_size,
> - pk_algos, pk_algos_length, &indx);
> - } else {
> - result = GNUTLS_E_UNIMPLEMENTED_FEATURE;
> + switch (cert_type) {
> + case GNUTLS_CRT_X509:
> + result = find_x509_client_cert(session, cred, _data,
> + _data_size, pk_algos,
> + pk_algos_length, &indx);
> + break;
> + case GNUTLS_CRT_RAWPK:
> + result = find_rawpk_cert(session, cred,
> + pk_algos, pk_algos_length, &indx);
> + break;
> + default:
> + result = GNUTLS_E_UNIMPLEMENTED_FEATURE; //REMARK: what is the best err code here, the current one or GNUTLS_E_UNSUPPORTED_CERTIFICATE_TYPE?
The unsupported looks more suitable.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_118714557
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181120/a2917bd7/attachment.html>
More information about the Gnutls-devel
mailing list