[Top][All Lists]

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

Re: (ITS#5361) cert verification failures with GnuTLS and DNS subjectAlt

From: Howard Chu
Subject: Re: (ITS#5361) cert verification failures with GnuTLS and DNS subjectAltName
Date: Sat, 16 Feb 2008 12:25:34 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.9b3pre) Gecko/2008013117 SeaMonkey/2.0a1pre

Nikos Mavrogiannopoulos wrote:
On Friday 15 February 2008, Howard Chu wrote:

Anyway, does the attached
patch solve your problem?
Not really. It still returns a size one byte larger than expected for the
strings. Even in languages where NUL-terminated strings are the norm, the
terminating byte is not included in the length.

The point is, we expect this API to return exactly the data that was in the
certificate. If the caller wants to treat the data as a string, they can
NUL-terminate it themselves. The manpage only says that the data will be
returned, it does not say that it will be altered in any way.

Actually you are right. The return value shouldn't be increased (this also
happens in the other similar functions). I've corrected the patch and
commited at:;a=commitdiff;h=4cc3c6b6ed00660e55559bab148021fc077da21f

Thanks. That looks ok to me.

  -- Howard Chu
  Chief Architect, Symas Corp.
  Director, Highland Sun
  Chief Architect, OpenLDAP

reply via email to

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