diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-21 11:13:58 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2015-03-21 11:13:58 +0100 |
commit | 356ddd824b0f95d0713daa6d12dbbcb3baf65439 (patch) | |
tree | 23312516e5f5e663260c42e35c873f6a15fb25fd /lib/gnutls_auth.c | |
parent | 1922ae131bd5a296944b7f08353f21ead6068679 (diff) | |
download | gnutls-356ddd824b0f95d0713daa6d12dbbcb3baf65439.tar.gz |
enable compilation with several options disabled
Diffstat (limited to 'lib/gnutls_auth.c')
-rw-r--r-- | lib/gnutls_auth.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gnutls_auth.c b/lib/gnutls_auth.c index 6a2e706cdf..3a8170524c 100644 --- a/lib/gnutls_auth.c +++ b/lib/gnutls_auth.c @@ -301,6 +301,7 @@ void _gnutls_free_auth_info(gnutls_session_t session) switch (session->key.auth_info_type) { case GNUTLS_CRD_SRP: break; +#ifdef ENABLE_ANON case GNUTLS_CRD_ANON: { anon_auth_info_t info = @@ -313,6 +314,7 @@ void _gnutls_free_auth_info(gnutls_session_t session) _gnutls_free_dh_info(dh_info); } break; +#endif case GNUTLS_CRD_PSK: { psk_auth_info_t info = @@ -321,8 +323,10 @@ void _gnutls_free_auth_info(gnutls_session_t session) if (info == NULL) break; +#ifdef ENABLE_DHE dh_info = &info->dh; _gnutls_free_dh_info(dh_info); +#endif } break; case GNUTLS_CRD_CERTIFICATE: @@ -345,7 +349,9 @@ void _gnutls_free_auth_info(gnutls_session_t session) info->raw_certificate_list = NULL; info->ncerts = 0; +#ifdef ENABLE_DHE _gnutls_free_dh_info(dh_info); +#endif } |