Mech_eap: only output debugging when GSSEAP_TRACE is set
authorSam Hartman <hartmans@debian.org>
Wed, 22 Oct 2014 18:18:09 +0000 (14:18 -0400)
committerSam Hartman <hartmans@debian.org>
Wed, 22 Oct 2014 18:18:09 +0000 (14:18 -0400)
commita743fc80542b1da5f4211fd166942ab4aeec0952
treef6fe93f0b9af5037fa4ec6e46a95ea792bac0a4c
parent1d91db0ace57f0b63665c0303eae0b347debaef7
Mech_eap: only output debugging when GSSEAP_TRACE is set

Previously we only output informational messages from libeap.
However, we also output them all the time to stdout, which is bad
because it disrupts the output of the program.  Now, only output
debugging when the GSSEAP_TRACE environment variable is set.  In that
case output all the libeap debugging, not just informational messages.

In addition, use secure_getenv if it is available to avoid introducing yet more issues if run in a raised privilege situation.
configure.ac
libeap/Makefile.am
mech_eap/gssapiP_eap.h
mech_eap/init_sec_context.c