[gnutls-devel] GnuTLS | Decode certificate policies OIDs (!1245)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu May 14 01:25:44 CEST 2020




Dmitry Baryshkov commented on a discussion on lib/x509/output.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1245#note_342121592

> +	ENTRY("1.2.643.100.113.5", "Russian security class KB2"),
> +	ENTRY("1.2.643.100.113.6", "Russian security class KA1"),
> +
> +	{NULL, 0, NULL, 0},
> +};
> +
> +static const char *_gnutls_x509_cp_oid_name(const char *oid)
> +{
> +	unsigned int i = 0;
> +	unsigned len = strlen(oid);
> +
> +	do {
> +		if ((cp_oid2str[i].oid_size == len) &&
> +			strcmp(cp_oid2str[i].oid, oid) == 0 && cp_oid2str[i].name_desc != NULL)
> +			return cp_oid2str[i].name_desc;
> +		i++;

If !1246 is accepted, I'll rebase this MR on top of it to get oid-to-string function.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1245#note_342121592
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/20200513/39bb90b9/attachment.html>


More information about the Gnutls-devel mailing list