diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-06-06 18:43:12 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2016-06-06 18:46:43 +0200 |
commit | e9ed732affc0580ec0941178bf760a90e89c2201 (patch) | |
tree | 319061bd4972427dabb38b0d947683e287d4ae67 /lib/global.c | |
parent | ff22daeca37be4c3c62e7095649243cb8d7a8454 (diff) | |
download | gnutls-e9ed732affc0580ec0941178bf760a90e89c2201.tar.gz |
keylogfile: only consider the SSLKEYLOGFILE variable
In addition do not check the environment in the constructor
but instead use static variables to save the key file name.
The GNUTLS_KEYLOGFILE environment variable is no longer used
since there is no reason to have a separate one.
Diffstat (limited to 'lib/global.c')
-rw-r--r-- | lib/global.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/global.c b/lib/global.c index ef05efaba1..535bb19896 100644 --- a/lib/global.c +++ b/lib/global.c @@ -71,7 +71,6 @@ extern const ASN1_ARRAY_TYPE gnutls_asn1_tab[]; extern const ASN1_ARRAY_TYPE pkix_asn1_tab[]; void *_gnutls_file_mutex; void *_gnutls_pkcs11_mutex; -const char *_gnutls_keylogfile = NULL; ASN1_TYPE _gnutls_pkix1_asn = ASN1_TYPE_EMPTY; ASN1_TYPE _gnutls_gnutls_asn = ASN1_TYPE_EMPTY; @@ -242,10 +241,6 @@ int gnutls_global_init(void) _gnutls_switch_lib_state(LIB_STATE_INIT); - _gnutls_keylogfile = secure_getenv("GNUTLS_KEYLOGFILE"); - if (_gnutls_keylogfile == NULL) - _gnutls_keylogfile = secure_getenv("SSLKEYLOGFILE"); - e = secure_getenv("GNUTLS_DEBUG_LEVEL"); if (e != NULL) { level = atoi(e); |