[gnutls-dev] generate_rdn_seq() collects CA's issuers, why?
Max Kellermann
max at duempel.org
Wed Dec 13 08:53:45 CET 2006
On 2006/12/12 18:50, Max Kellermann <max at duempel.org> wrote:
> If I'm correct and if this is really a bug in gnutls, I believe my
> second experiment is a solution for the gnutls bug.
Patch.
Max
-------------- next part --------------
Index: lib/gnutls_x509.c
===================================================================
RCS file: /cvs/gnutls/gnutls/lib/gnutls_x509.c,v
retrieving revision 2.175
diff -u -r2.175 gnutls_x509.c
--- lib/gnutls_x509.c 16 Jun 2006 13:29:36 -0000 2.175
+++ lib/gnutls_x509.c 13 Dec 2006 07:48:47 -0000
@@ -990,8 +990,8 @@
for (i = 0; i < res->x509_ncas; i++)
{
if ((ret =
- _gnutls_x509_crt_get_raw_issuer_dn (res->x509_ca_list[i],
- &tmp)) < 0)
+ _gnutls_x509_crt_get_raw_dn (res->x509_ca_list[i],
+ &tmp)) < 0)
{
gnutls_assert ();
return ret;
@@ -1016,8 +1016,8 @@
for (i = 0; i < res->x509_ncas; i++)
{
if ((ret =
- _gnutls_x509_crt_get_raw_issuer_dn (res->x509_ca_list[i],
- &tmp)) < 0)
+ _gnutls_x509_crt_get_raw_dn (res->x509_ca_list[i],
+ &tmp)) < 0)
{
_gnutls_free_datum (&res->x509_rdn_sequence);
gnutls_assert ();
More information about the Gnutls-devel
mailing list