return done;
}
-int __attribute__ ((format (printf, 2, 3)))
- openconnect_SSL_printf(struct openconnect_info *vpninfo, const char *fmt, ...)
-{
- char buf[1024];
- va_list args;
-
- buf[1023] = 0;
-
- va_start(args, fmt);
- vsnprintf(buf, 1023, fmt, args);
- va_end(args);
- return openconnect_SSL_write(vpninfo, buf, strlen(buf));
-
-}
-
int openconnect_SSL_gets(struct openconnect_info *vpninfo, char *buf, size_t len)
{
int i = 0;
return done;
}
-int __attribute__ ((format (printf, 2, 3)))
- openconnect_SSL_printf(struct openconnect_info *vpninfo, const char *fmt, ...)
-{
- char buf[1024];
- va_list args;
-
- buf[1023] = 0;
-
- va_start(args, fmt);
- vsnprintf(buf, 1023, fmt, args);
- va_end(args);
- return openconnect_SSL_write(vpninfo, buf, strlen(buf));
-
-}
-
static int print_err(const char *str, size_t len, void *ptr)
{
struct openconnect_info *vpninfo = ptr;
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
+#include <stdarg.h>
#if defined(__linux__)
#include <sys/vfs.h>
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__APPLE__)
return ssl_sock;
}
+int __attribute__ ((format (printf, 2, 3)))
+ openconnect_SSL_printf(struct openconnect_info *vpninfo, const char *fmt, ...)
+{
+ char buf[1024];
+ va_list args;
+
+ buf[1023] = 0;
+
+ va_start(args, fmt);
+ vsnprintf(buf, 1023, fmt, args);
+ va_end(args);
+ return openconnect_SSL_write(vpninfo, buf, strlen(buf));
+
+}
+
#if defined(__sun__) || defined(__NetBSD__) || defined(__DragonFly__)
int openconnect_passphrase_from_fsid(struct openconnect_info *vpninfo)
{