[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 13:28:32 CET 2020
Tim Rühsen commented on a discussion on lib/x509/common.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1209#note_303864852
> 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)
Thanks. I guess it was me who introduced the asn1_node_const :smile:. Anyways, I will prepare a commit for libtasn1 so that deprecated defines will be warned about (e.g. when used in gnutls).
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1209#note_303864852
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/33272b44/attachment.html>
More information about the Gnutls-devel
mailing list