[gnutls-devel] GnuTLS | lib/x509: use common routine for parsing data version (!1209)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Thu Mar 12 11:42:23 CET 2020
Tim Rühsen commented on a discussion on lib/x509/common.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1209#note_303795885
> else
> return gnutls_assert_val(GNUTLS_GOST_PARAMSET_UNKNOWN);
> }
> +
> +int _gnutls_x509_get_version(asn1_node root, const char *name)
> +{
> + uint8_t version[8];
> + int len, result;
> +
> + len = sizeof(version);
> + result = asn1_read_value(root, name, version, &len);
> + if (result != ASN1_SUCCESS) {
> + if (result == ASN1_ELEMENT_NOT_FOUND)
@nmav At what point should we use the new libtasn1 const types like `asn1_node_const` ? We would force users to use a recent libtasn1 when building the latest gnutls then...
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1209#note_303795885
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/20200312/7fd7154d/attachment-0001.html>
More information about the Gnutls-devel
mailing list