gnutls-devel
[Top][All Lists]
Advanced

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

Re: gnuTLS issues


From: Simon Josefsson
Subject: Re: gnuTLS issues
Date: Fri, 29 Aug 2008 11:39:53 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Simon Josefsson <address@hidden> writes:

>> Is GnuTLS usually compiled with ENABLE_PKI set to 1?  When Amir imported the 
>> GnuTLS code, he made sure that this flag was always set -- what does it do?
>
> Yes, ENABLE_PKI is normally always 1 in GnuTLS, but there is
> --disable-extra-pki to set it to 0.  I'm not sure the code even builds
> with ENABLE_PKI set to 0 any more, I don't check for that.  Originally
> the symbol was likely intended to strip GnuTLS of the larger X.509 parts
> which are normally not needed.  But it is an old symbol, so Nikos will
> know what it was intended for.

I looked into this more, and you should be able to compile with
EXTRA_PKI set to 0 if you want to reduce code size.

Setting EXTRA_PKI to 0 disables features such as:

* CRL
* PKCS#7
* PKCS#12
* X.509 certificate generation including signing
* Certificate requests

However the code necessary to verify X.509 signature remains, so you
shouldn't be vulnerable to many more problem compared to before.  Except
that CRLs won't be verified, of course, but practically nobody uses CRLs
anyway so....  your choice.

Note that the command line tools and many self-tests won't build because
they need this extra functions.  The libraries should build fine, at
least it does here.

/Simon




reply via email to

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