]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Rework the user input interface to make it more modular
authorDavid Sommerseth <davids@openvpn.net>
Fri, 26 Aug 2016 17:48:52 +0000 (19:48 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Tue, 11 Oct 2016 10:27:36 +0000 (12:27 +0200)
commit430ce8bd03b23717ec42a8a34aa66e804ca97287
treeb2624cc382ca24050ff419f2abd21adb7017fbc0
parent55755e6ee56516c96525e6bf313c173653af1a4b
Rework the user input interface to make it more modular

This is will provide an interface for other mechanisms to be used to
query the user for information, such as usernames, passwords, etc.

It has also been a goal to make it possible to query for all the
information in one call and not do it sequencially as before.

 [v5 - Ensure password prompt is only displayed if we should read
       from stdin ]

 [v4 - add a simple wrapper combining query_user_{init,add,exec}()
     - change disapproved &= syntax ]

 [v3 - Avoid the dynamic list, use a static list of QUERY_USER_NUMSLOTS
     - The list of query_user data is now a global variable
     - Replaced query_user_init() with query_user_clear()
     - Make query_user_add() a void function
     - Rebased against master/600dd9a16fc61 ]

 [v2 - Removed the QUERY_USER_FOREACH macro
     - Avoided using underscore prefix in function names
     - Make query_user_init() do M_FATAL and become a void function
       instead of returning false in these unlikely situations ]

Signed-off-by: David Sommerseth <davids@openvpn.net>
Acked-by: Selva Nair <selva.nair@gmail.com>
Message-Id: 1472233732-27074-1-git-send-email-davids@openvpn.net
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg00137.html
src/openvpn/Makefile.am
src/openvpn/console.c
src/openvpn/console.h
src/openvpn/console_builtin.c [new file with mode: 0644]
src/openvpn/misc.c
src/openvpn/pkcs11.c