3 Fixed gpg-error descriptions. Client's linked to this version of libpwmd
4 should be using pwmd v0.10 or later.
6 Made the pwm_t structure private.
8 Library functions returning PWMD_OK or PWMD_ERROR now are prototyped to return
9 a type of pwmd_error_t.
11 Renamed pwmd_option to pwmd_option_t.
13 Added PWMD_OPTION_STATUS_FUNC and PWMD_OPTION_STATUS_DATA. The set function
14 will be called when pwmd sends a status (S) line. The function should return 0
15 on success or a gpg_error_t which will fail the current command with the
18 Renamed PWMD_OPTION_[TITLE|PROMPT|DESC] to PWMD_OPTION_PINENTRY_...
20 When using pinentry(1) for password retrieval, PWMD_OPTION_PINENTRY_TRIES can
21 be set to specify the number of times before giving up after an invalid
22 password. This is only used with pwmd_open(). When a password is required when
23 using pwmd_save() the entered password must now be confirmed and will continue
24 to prompt until either the passwords match or Cancel is selected.
26 The custom memory de/allocator symbols are now hidden.
28 Renamed pwmd_password_func to pwmd_password_fn. A pwm_t * is also a required
31 Renamed pwmd_status_func to pwmd_status_fn.
33 Removed pwmd_get_password(). This has been replaced by pwmd_open_nb() and
34 pwmd_save_nb(). These function's will return a file descriptor that select()
35 can use when a file isn't cached. When available for a read(), a
36 pwmd_nb_status_t should be read and then passed to pwmd_open_nb_finalize() or
37 pwmd_save_nb_finalize() to update the pwm handle. pwmd_open_nb() also has an
38 option to specify the number of seconds until the pinentry process will
41 Added pwmd_terminate_pinentry() which will kill the pinentry process
42 associated with the specified pwm handle. Use this if you need a pinentry
43 timeout but don't call pwmd_open_nb().
45 When a file ~/.pwmd/env exists, it is read before calling pinentry. This file
46 contains NAME=VALUE pinentry settings where NAME is one of TTY, TERM or
47 DISPLAY. These settings will overwrite the ones set by pwmd_setopt(). This
48 allows a daemon process to use pinentry after it's cache entry has been
56 Now uses the assuan protocol for communicating with pwmd. This changes things
57 quite a bit. Read on...
59 Uses more secure memory allocation. Kinda. It mainly just zero's out what is
60 allocated before free()'ing it.
62 Added pwmd_init(). Call this before anything else.
64 Added pwmd_open() and pwmd_save(). This removes PWMD_OPEN and PWMD_SAVE.
66 Removed PWMD_COMMAND. pwmd_command() now accepts a format string as the
69 Added pwmd_free_result(). Use this to free a result from pwmd_command().
71 Removed PWMD_SETOPT. Changed to pwmd_setopt().
73 Added options for setting up the pinentry terminal and display.
75 Added pwmd_get_password(). This is a nonblocking way of calling pinentry. It
76 returns a file descriptor that select() can use to read from when a password
77 is ready to be read from with read() (mostly ripped from Elinks'
78 start_thread()). Thanks Kalle Olavi Niemitalo <kon@iki.fi> for the idea.
80 Now uses libgpg-error error codes.
82 Fixed pwmc and the BYE command.
84 A few other changes. Read the libpwmd.h header file, libpwmd.3 and ChangeLog
90 Split pwmd and libpwmd into their own packages.
92 Added PWMD_SETOPT options PWMD_OPTION_PASSWORD_FUNC and
93 PWMD_OPTION_PASSWORD_DATA to specify a custom password retrieval function for
94 use with the PWMD_OPEN and PWMD_SAVE commands.
96 gpg-agent(1) is no longer used for interacting with pinentry(1). Now libassuan
97 calls pinentry directly. This adds PWMD_OPTION_PINENTRY_PATH to specify the
98 location of the pinentry program. The default is /usr/bin/pinentry. New
99 programs should use PWMD_OPTION_PINENTRY instead of PWMD_OPTION_USEAGENT and
100 EPWMD_PINENTRY_ERROR instead of EPWMD_AGENT_ERROR.
107 Removed pwmd_list_free(). The prototype disappeared but I forgot to remove the
113 Restore the working directory after connecting to the socket.
115 Changed the gpg-agent title and description strings in pwmc.
117 Fixed a segfault when looking for the empty string in a result from
123 Most of the PWMD_* commands have been removed. PWMD_OPEN, PWMD_SAVE,
124 PWMD_SETOPT and the new PWMD_COMMAND remain. PWMD_COMMAND takes a char*
125 argument being the protocol command along with any argument to send to the
126 server. This is alot simpler and less error prone than before. Also the
127 library won't need to be updated if a protocol command changed or is added.
129 Fixed PWMD_SAVE and asking for a password when the file was cached.
131 Added pwmc. This is a command line client for pwmd. It reads protocol commands
134 Removed pwmd_base64_encode() and pwmd_base64_decode().
136 Added a pkg-config meta file.
141 Added PWMD_ATTR_GET to get an attribute value from an element path.
143 pwmd_base64_decode() bugfix. Don't assume the return value is a character
144 array by nul-terminating it.
146 Added pwmd_list_free() to free a "list" result.
148 Can compile with g++ and maybe other C++ compilers.
150 Fixed some memory leaks.
152 Bugfix for the protocol parser.
157 Changed the version number as suggested by the libtool docs.
159 pwmd_base64_decode() bugfix. The returned string wasn't NULL terminated.
161 Updates for the OPEN and SAVE protocol commands. libPWMD no longer base64
164 Updates for the new ATTR protocol command.