mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
omit some diagnostic on older versions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40069 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
efdf2a674f
commit
4a3058fd5b
1 changed files with 4 additions and 0 deletions
|
@ -1277,6 +1277,7 @@ static NSMutableDictionary *credentialsCache = nil;
|
|||
@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 @@ retrieve_callback(gnutls_session_t session,
|
|||
return -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@implementation GSTLSSession
|
||||
|
||||
|
@ -1637,6 +1639,7 @@ retrieve_callback(gnutls_session_t session,
|
|||
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 @@ retrieve_callback(gnutls_session_t session,
|
|||
gnutls_certificate_set_retrieve_function(
|
||||
[credentials credentials], retrieve_callback);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Set transport layer to use
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue