bug: missing ifdef in lib/x509/mpi.c

Bill Randle billr at neocat.org
Mon Dec 28 05:00:05 CET 2009


mpi.c calls gnutls_x509_crq_get_pk_algorithm() without protecting the
function with a #ifdef ENABLE_PKI. As a result, the linker will complain
about an undefined reference if ENABLE_PKI is not defined.

This happens when building gnutls-2.8.5, cross-compiled for an embedded
arm system. Configure was run as follows:

./configure --prefix=/usr --host=arm-linux
--disable-openssl-compatibility --disable-openpgp-authentication
--disable-extra-pki --disable-camellia --disable-psk-authentication
--with-included-libtasn1 --with-gnu-ld --disable-gtk-doc-html
--disable-guile
--with-libgcrypt-prefix=/proj2/pvpowered/workspace/ltib/ltib/rootfs/usr

I haven't looked the code enough to know where to put the ifdef or the
side effects of adding an ifdef. A suggested patch would be appreciated.

	-Bill Randle
	billr at neocat.org







More information about the Gnutls-devel mailing list