Reimplement GnuTLS support.
commit9e08b8d2d2c87d2b00034f4dcf133724a41951be
authorBen Kibbey <bjk@luxsci.net>
Sat, 19 May 2012 22:31:12 +0000 (19 18:31 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sun, 20 May 2012 16:11:11 +0000 (20 12:11 -0400)
treee1aab45714a860454471019149be3856f02341d1
parentd695ed55d7bf1b0b4103f7241a8d60c32d38e62b
Reimplement GnuTLS support.

Changes pwmd_connect() to use a va_list of parameters for url options
and adds PWMD_OPTION_TLS_VERIFY to verify the client hostname against
the server certificate. This option is disabled by default.

pwmc: add command line options --ca-cert, --client-cert, --client-key,
--tls-verify and --tls-priority. This also adds a new URL in the form of
tls[46]://hostname[:port].
12 files changed:
configure.ac
doc/libpwmd.3
doc/pwmc.1.in
src/Makefile.am
src/libpwmd.c
src/libpwmd.h.in
src/pwmc.c
src/ssh.c
src/ssh.h
src/tls.c [new file with mode: 0644]
src/tls.h [copied from src/ssh.h with 53% similarity]
src/types.h