[gnutls-devel] GnuTLS | WIP: AIA callback to retrieve missing chain certificates (!1262)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Fri May 29 06:35:21 CEST 2020
Daiki Ueno started a new discussion on lib/includes/gnutls/abstract.h: https://gitlab.com/gnutls/gnutls/-/merge_requests/1262#note_351493519
> (gnutls_certificate_credentials_t cred,
> gnutls_certificate_retrieve_function3 *func);
>
> +typedef int gnutls_trust_list_getissuer_function(gnutls_x509_crt_t crt,
> + gnutls_x509_crt_t issuer);
I would suggest changing the signature to:
```c
typedef int gnutls_trust_list_getissuer_function(const gnutls_x509_trust_list_t tlist,
const gnutls_x509_crt_t issuer,
gnutls_x509_crt_t crt);
```
The first argument makes it future proof, if we eventually add `gnutls_x509_trust_list_{set,get}_ptr` functions for applications. The `const` serves the documentation that the callback is supposed to set `crt` using the information of `issuer`.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1262#note_351493519
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/20200529/caa0a7b1/attachment.html>
More information about the Gnutls-devel
mailing list