Mercurial > hg > freeDiameter
diff include/freeDiameter/libfdcore.h @ 805:fb5e0fd923ff
Updated verification of the local certificate following GnuTLS 3.x guideline
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Wed, 22 Aug 2012 22:56:22 +0200 |
parents | 4a9f08d6b6ba |
children | c0a88c1bcc1e |
line wrap: on
line diff
--- a/include/freeDiameter/libfdcore.h Wed Aug 22 00:22:46 2012 +0200 +++ b/include/freeDiameter/libfdcore.h Wed Aug 22 22:56:22 2012 +0200 @@ -51,6 +51,7 @@ #define GNUTLS_DBG_LEVEL ANNOYING #endif /* GNUTLS_DBG_LEVEL */ + /* Check the return value of a GNUTLS function, log and propagate */ #define CHECK_GNUTLS_DO( __call__, __fallback__ ) { \ int __ret__; \ @@ -149,7 +150,10 @@ gnutls_dh_params_t dh_cache; /* GNUTLS server credential(s) */ - gnutls_certificate_credentials_t credentials; + gnutls_certificate_credentials_t credentials; /* contains local cert + trust anchors */ + #ifdef GNUTLS_VERSION_300 + gnutls_x509_trust_list_t trustlist; /* the logic to check local certificate has changed */ + #endif /* GNUTLS_VERSION_300 */ } cnf_sec_data;