Author: rfm Date: Mon Sep 5 11:57:02 2016 New Revision: 40069 URL: http://svn.gna.org/viewcvs/gnustep?rev=40069&view=rev Log: omit some diagnostic on older versions
Modified: libs/base/trunk/Source/GSTLS.m Modified: libs/base/trunk/Source/GSTLS.m URL: http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/GSTLS.m?rev=40069&r1=40068&r2=40069&view=diff ============================================================================== --- libs/base/trunk/Source/GSTLS.m (original) +++ libs/base/trunk/Source/GSTLS.m Mon Sep 5 11:57:02 2016 @@ -1277,6 +1277,7 @@ @end +#if GNUTLS_VERSION_NUMBER >= 0x020C00 /* Callback used only when debug is enabled, to print the request for a * certificate and the response to that request. * NB. This function always returns the certificate set for the session @@ -1354,6 +1355,7 @@ return -1; } } +#endif @implementation GSTLSSession @@ -1637,6 +1639,7 @@ gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, [credentials credentials]); +#if GNUTLS_VERSION_NUMBER >= 0x020C00 if (YES == outgoing && YES == debug) { /* Set a callback to log handling of a request (from the server) @@ -1647,6 +1650,7 @@ gnutls_certificate_set_retrieve_function( [credentials credentials], retrieve_callback); } +#endif /* Set transport layer to use */ _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs