[GIT PULL] Refactor signal handling, change log levels, API updates

Kevin Cernekee cernekee at gmail.com
Tue Jun 10 00:12:05 PDT 2014


This patch series updates the command-line client to implement the
signal handling changes discussed previously on the list:

    SIGINT: Disconnect and logoff, run vpnc-script accordingly
    SIGHUP: Disconnect and run vpnc-script (cookie can be re-used)
    SIGTERM: Just die. Disconnect without logoff, no vpnc-script
    SIGUSR2: Reconnect to server immediately as if DPD triggered.

It retires the old SIGUSR1/SIGUSR2 handlers that used to change the
loglevel.  Previously, debug output (-v) was all-or-nothing.  Now -v
enables PRG_DEBUG, which is fairly chatty but should not print per-
packet information or otherwise degrade performance.  In order to see
per-packet messages, a situation that is expected to be very rare,
the user now needs to specify -vv (for PRG_TRACE).

On the API front, this series fixes some out-of-sync definitions for
openconnect_set_pfs(), and adds a new openconnect_set_dpd() function to
accommodate users who require a shorter interval due to connection
flakiness.  The latter feature was requested by a user who is connecting
multiple clients to a mobile 3G<->wifi hotspot as a gateway, and finds
that the hotspot's public (3G) IP address changes frequently without
notice.


The following changes since commit ff214c69c2602669e14813c9ec0cf301849df690:

  Import translations from GNOME (2014-04-28 13:23:56 +0100)

are available in the git repository at:

  git://github.com/cernekee/openconnect signal-20140609

for you to fetch changes up to a2ef8ba6e267f75ae4cbe2f3c0501737673a5c9e:

  Change most PRG_TRACE prints to PRG_DEBUG (2014-06-09 20:18:28 -0700)

----------------------------------------------------------------
Kevin Cernekee (12):
      jni: Sync jni.c and LibOpenConnect.java
      jni: Change setPFS() to use a boolean argument
      man: Add hints on using --pfs option
      Export openconnect_set_pfs() and bump API version to 3.3
      main: Use openconnect_set_pfs() instead of touching vpninfo->pfs
      Add "new library function checklist"
      www: Update changelog
      android: Update to GnuTLS 3.2.15
      library: Add openconnect_set_dpd()
      tun: Export os_shutdown_tun() to library callers
      main: Refactor signal handling
      Change most PRG_TRACE prints to PRG_DEBUG

 ...read-file-fix-missing-SIZE_MAX-on-Android.patch |   48 --------------------
 android/Makefile                                   |    5 +-
 auth.c                                             |    6 +--
 cstp.c                                             |   18 ++++----
 dtls.c                                             |   20 ++++----
 gnutls.c                                           |   14 +++---
 gnutls_tpm.c                                       |    2 +-
 http.c                                             |   10 ++--
 .../infradead/libopenconnect/LibOpenConnect.java   |    3 ++
 jni.c                                              |   40 ++++++++++++----
 libopenconnect.map.in                              |    7 +++
 library.c                                          |    9 ++++
 main.c                                             |   47 +++++++++++--------
 mainloop.c                                         |    2 +-
 openconnect-internal.h                             |    1 -
 openconnect.8.in                                   |   25 +++++++++-
 openconnect.h                                      |   24 +++++++++-
 openssl.c                                          |   18 ++++----
 ssl.c                                              |    2 +-
 tun-win32.c                                        |    8 ++--
 tun.c                                              |    2 +-
 www/changelog.xml                                  |    7 ++-
 xml.c                                              |    2 +-
 23 files changed, 184 insertions(+), 136 deletions(-)
 delete mode 100644 android/0001-gl-stdint-read-file-fix-missing-SIZE_MAX-on-Android.patch
-- 
1.7.9.5




More information about the openconnect-devel mailing list