diff --git a/Source/GSSocketStream.m b/Source/GSSocketStream.m index 0154b1fab..206ed0d7d 100644 --- a/Source/GSSocketStream.m +++ b/Source/GSSocketStream.m @@ -103,6 +103,8 @@ static struct gcry_thread_cbs gcry_threads_other = { - (int) write: (const uint8_t *)buffer maxLength: (unsigned int)len; @end +#if defined(HAVE_GNUTLS) + /* Callback to allow the TLS code to pull data from the remote system. * If the operation fails, this sets the error number. */ @@ -163,6 +165,9 @@ GSTLSLog(int level, const char *msg) NSLog(@"%s", msg); } +#endif /* HAVE_GNUTLS */ + + @implementation GSTLS #if defined(HAVE_GNUTLS) static gnutls_anon_client_credentials_t anoncred;