5 Don't free the password when set with pwmd_setopt() until pwmd_close() is
6 called. Fixes pwmc -p for example.
8 Fixed pwmc and looping when an error occurs and pinentry is used to get the
14 FreeBSD compile-time fix.
16 pwmd_open() will return GPG_ERR_TIMEOUT after pwmd_terminate_pinentry() is
19 Warn about unused function results at compile-time.
24 Fixed gpg-error descriptions. Client's linked to this version of libpwmd
25 should be using pwmd v0.10 or later.
27 Made the pwm_t structure private.
29 Library functions returning PWMD_OK or PWMD_ERROR now are prototyped to return
30 a type of gpg_error_t. This removes the extra needed parameter when calling
31 these functions. When these functions succeed, 0 is returned. Otherwise it's
32 an error code that pwmd_strerror() can describe.
34 Renamed pwmd_option to pwmd_option_t.
36 Added PWMD_OPTION_STATUS_FUNC and PWMD_OPTION_STATUS_DATA. The set function
37 will be called when pwmd sends a status (S) line. The function should return 0
38 on success or a gpg_error_t which will fail the current command with the
41 Renamed PWMD_OPTION_[TITLE|PROMPT|DESC] to PWMD_OPTION_PINENTRY_...
43 When using pinentry for password retrieval, PWMD_OPTION_PINENTRY_TRIES can
44 be set to specify the number of times before giving up after an invalid
47 The custom memory de/allocator symbols are now hidden.
49 Renamed pwmd_password_func to pwmd_password_fn. A pwm_t * is also a required
52 Renamed pwmd_status_func to pwmd_status_fn.
54 Removed pwmd_get_password(). This has been replaced by pwmd_open_nb() and
55 pwmd_save_nb(). These function's will return a file descriptor that select()
56 can use when a file isn't cached. When available for a read(), a
57 pwmd_nb_status_t should be read and then passed to pwmd_open_nb_finalize() or
58 pwmd_save_nb_finalize() to update the pwm handle. pwmd_open_nb() also has an
59 option to specify the number of seconds until the pinentry process will
62 Added pwmd_terminate_pinentry() which will kill the pinentry process
63 associated with the specified pwm handle. Use this if you need a pinentry
64 timeout but don't call pwmd_open_nb().
66 Added pwmc command line option -t to specified the pinentry timeout.
68 When a file ~/.pwmd/env exists, it is read before calling pinentry. This file
69 contains NAME=VALUE pinentry settings where NAME is one of TTY, TERM or
70 DISPLAY. These settings will overwrite the ones set by pwmd_setopt(). This
71 allows a daemon process to use pinentry after it's cache entry has been
74 Quite a few API changes and bugfixes. Read libpwmd.3 for details.
79 Now uses the assuan protocol for communicating with pwmd. This changes things
80 quite a bit. Read on...
82 Uses more secure memory allocation. Kinda. It mainly just zero's out what is
83 allocated before free()'ing it.
85 Added pwmd_init(). Call this before anything else.
87 Added pwmd_open() and pwmd_save(). This removes PWMD_OPEN and PWMD_SAVE.
89 Removed PWMD_COMMAND. pwmd_command() now accepts a format string as the
92 Added pwmd_free_result(). Use this to free a result from pwmd_command().
94 Removed PWMD_SETOPT. Changed to pwmd_setopt().
96 Added options for setting up the pinentry terminal and display.
98 Added pwmd_get_password(). This is a nonblocking way of calling pinentry. It
99 returns a file descriptor that select() can use to read from when a password
100 is ready to be read from with read() (mostly ripped from Elinks'
101 start_thread()). Thanks Kalle Olavi Niemitalo <kon@iki.fi> for the idea.
103 Now uses libgpg-error error codes.
105 Fixed pwmc and the BYE command.
107 A few other changes. Read the libpwmd.h header file, libpwmd.3 and ChangeLog
113 Split pwmd and libpwmd into their own packages.
115 Added PWMD_SETOPT options PWMD_OPTION_PASSWORD_FUNC and
116 PWMD_OPTION_PASSWORD_DATA to specify a custom password retrieval function for
117 use with the PWMD_OPEN and PWMD_SAVE commands.
119 gpg-agent(1) is no longer used for interacting with pinentry(1). Now libassuan
120 calls pinentry directly. This adds PWMD_OPTION_PINENTRY_PATH to specify the
121 location of the pinentry program. The default is /usr/bin/pinentry. New
122 programs should use PWMD_OPTION_PINENTRY instead of PWMD_OPTION_USEAGENT and
123 EPWMD_PINENTRY_ERROR instead of EPWMD_AGENT_ERROR.
130 Removed pwmd_list_free(). The prototype disappeared but I forgot to remove the
136 Restore the working directory after connecting to the socket.
138 Changed the gpg-agent title and description strings in pwmc.
140 Fixed a segfault when looking for the empty string in a result from
146 Most of the PWMD_* commands have been removed. PWMD_OPEN, PWMD_SAVE,
147 PWMD_SETOPT and the new PWMD_COMMAND remain. PWMD_COMMAND takes a char*
148 argument being the protocol command along with any argument to send to the
149 server. This is alot simpler and less error prone than before. Also the
150 library won't need to be updated if a protocol command changed or is added.
152 Fixed PWMD_SAVE and asking for a password when the file was cached.
154 Added pwmc. This is a command line client for pwmd. It reads protocol commands
157 Removed pwmd_base64_encode() and pwmd_base64_decode().
159 Added a pkg-config meta file.
164 Added PWMD_ATTR_GET to get an attribute value from an element path.
166 pwmd_base64_decode() bugfix. Don't assume the return value is a character
167 array by nul-terminating it.
169 Added pwmd_list_free() to free a "list" result.
171 Can compile with g++ and maybe other C++ compilers.
173 Fixed some memory leaks.
175 Bugfix for the protocol parser.
180 Changed the version number as suggested by the libtool docs.
182 pwmd_base64_decode() bugfix. The returned string wasn't NULL terminated.
184 Updates for the OPEN and SAVE protocol commands. libPWMD no longer base64
187 Updates for the new ATTR protocol command.