Adding support for reading encryption/key password from a file descriptor.

* Added tests to the test suite.
 * Updated the usage message.
 * Fixed the password functions.

reference : mrash/fwknop#74
This commit is contained in:
Franck Joncourt
2013-06-02 21:36:17 +02:00
parent f3af0d48c5
commit 9fce10abd8
6 changed files with 73 additions and 25 deletions

View File

@@ -48,6 +48,9 @@
#define PROTOCOL_BUFSIZE 16 /*!< Maximum number of chars for a protocol string (TCP for example) */
#define FD_INVALID -1
#define FD_IS_VALID(x) ((x)>=0)
/* Prototypes
*/
void hex_dump(const unsigned char *data, const int size);