gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] Re: BUG: gnutls_x509_crq_export return value


From: Simon Josefsson
Subject: [gnutls-dev] Re: BUG: gnutls_x509_crq_export return value
Date: Mon, 21 Aug 2006 10:57:05 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Aaron VanDevender <address@hidden> writes:

> The documentation for gnutls_x509_crq_export says that it should return
> 0 upon success, but it seems that it actually returns the size of the
> exported record (as of 1.4.5).

Hi.  Thanks for the report.  I can't understand why that would happen,
by reading the source.  Do you have a test-case to reproduce this?

The gnutls_x509_crq_export function is simple:

  return _gnutls_x509_export_int (crq->crq, format, PEM_CRQ,
                                  *output_data_size, output_data,
                                  output_data_size);

And by reading the code, _gnutls_x509_export_int seem to only return 0
or negative values.

Maybe you can help me by pointing out how gnutls_x509_crq_export ends
up returning positive values...?

Thanks,
Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]