aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/misc.c10
-rw-r--r--lib/misc.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/misc.c b/lib/misc.c
index c977029f..d6795ec9 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -44,6 +44,8 @@
#include <resolv.h>
#endif
+#include "ssl_client.h"
+
void strip_linefeed(gchar *text)
{
int i, j;
@@ -590,3 +592,11 @@ char *word_wrap( char *msg, int line_len )
return g_string_free( ret, FALSE );
}
+
+gboolean ssl_sockerr_again( void *ssl )
+{
+ if( ssl )
+ return ssl_errno == SSL_AGAIN;
+ else
+ return sockerr_again();
+}
diff --git a/lib/misc.h b/lib/misc.h
index 1d76f7f2..e0468d73 100644
--- a/lib/misc.h
+++ b/lib/misc.h
@@ -65,4 +65,6 @@ G_MODULE_EXPORT struct ns_srv_reply *srv_lookup( char *service, char *protocol,
G_MODULE_EXPORT char *word_wrap( char *msg, int line_len );
+G_MODULE_EXPORT gboolean ssl_sockerr_again( void *ssl );
+
#endif