mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
postpone usage of cork and uncork
This commit is contained in:
+2
-2
@@ -402,14 +402,14 @@ int ret;
|
||||
|
||||
void tls_cork(gnutls_session_t session)
|
||||
{
|
||||
#if GNUTLS_VERSION_NUMBER > 0x030107
|
||||
#if GNUTLS_VERSION_NUMBER > 0x030109
|
||||
gnutls_record_cork(session);
|
||||
#endif
|
||||
}
|
||||
|
||||
int tls_uncork(gnutls_session_t session)
|
||||
{
|
||||
#if GNUTLS_VERSION_NUMBER > 0x030107
|
||||
#if GNUTLS_VERSION_NUMBER > 0x030109
|
||||
return gnutls_record_uncork(session, GNUTLS_RECORD_WAIT);
|
||||
#else
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user