These patches allow libopenconnect to be built for PNaCl/newlib and establish a session through the chrome.vpnProvider API. A separate "driver" program is needed to interface between JavaScript/PPAPI and the library APIs. I will post it elsewhere when it is in better shape. The last two patches are RFC and should not be applied yet. Also, I think another library API call will be needed to support CrOS hardware-backed certificates (chrome.platformKeys). Kevin Cernekee (9): Allow tunnel setup prior to entering mainloop library: Fix misspelling of "node" in openconnect_override_getaddrinfo() Make the library callable from C++ NaCl: Detect systems that don't support statfs() NaCl: Enable libc feature test macros NaCl: Bypass ioctls during tunnel setup NaCl: Don't try to use CSD, vsyslog, or setgroups [RFC] Add gateway_addr field to ip_info [RFC] Add setup_tun() callback auth.c | 6 +++--- configure.ac | 3 ++- libopenconnect.map.in | 1 + library.c | 19 +++++++++++++++---- main.c | 8 +++++--- mainloop.c | 13 +++++++------ openconnect-internal.h | 1 + openconnect.h | 20 +++++++++++++++++++- script.c | 7 ++----- ssl.c | 16 ++++++++++++++-- tun-win32.c | 1 + tun.c | 12 +++++++++++- 12 files changed, 81 insertions(+), 26 deletions(-) -- 1.9.1