summaryrefslogtreecommitdiff
path: root/lib/gnutls_state.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-31 09:34:15 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-31 09:34:45 +0100
commit0034b44b1bfb01f198f1863e16dcca738c5f8042 (patch)
tree7e708788c5a22c0f909e6cfd90f96e12a2f0b8dc /lib/gnutls_state.c
parenteb77ac831c61c9aa646df7865d7fb7a7e856db0e (diff)
downloadgnutls-0034b44b1bfb01f198f1863e16dcca738c5f8042.tar.gz
dropped gnutls_fd_in_use, it is no longer necessary
Diffstat (limited to 'lib/gnutls_state.c')
-rw-r--r--lib/gnutls_state.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/gnutls_state.c b/lib/gnutls_state.c
index 74bd4f649f..e81fd3bb80 100644
--- a/lib/gnutls_state.c
+++ b/lib/gnutls_state.c
@@ -1161,30 +1161,6 @@ int gnutls_session_is_resumed(gnutls_session_t session)
}
/**
- * gnutls_fd_in_use:
- * @fd: is a file descriptor to check against
- *
- * Check whether the provided file descriptor is used by
- * gnutls internally. That is whether is used for /dev/urandom
- * etc. That function is to be used by applications that close()
- * all file descriptors on application startup.
- *
- * Returns: non zero if this fd is in use, or a zero otherwise.
- *
- * Since: 3.3.10
- **/
-unsigned gnutls_fd_in_use(int fd)
-{
-#ifdef _WIN32
- return 0;
-#else
- if (fd >= 0 && fd == _gnutls_urandom_fd)
- return 1;
- return 0;
-#endif
-}
-
-/**
* gnutls_session_resumption_requested:
* @session: is a #gnutls_session_t structure.
*