[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 10:55:50 CET 2020
Nikos Mavrogiannopoulos started a new discussion on lib/x509/common.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1209#note_303761627
> 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)
LGTM to me overall. A question, is the default in all of them the version 1? (I haven't verified)
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1209#note_303761627
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/ff7595b8/attachment-0001.html>
More information about the Gnutls-devel
mailing list