Send the total number of iterations with the ENCRYPT and DECRYPT
commit4d442844325b7cf87cf5c03f7d4df2a04433ec29
authorBen Kibbey <bjk@luxsci.net>
Tue, 4 Mar 2008 00:12:25 +0000 (3 19:12 -0500)
committerBen Kibbey <bjk@luxsci.net>
Tue, 4 Mar 2008 00:12:25 +0000 (3 19:12 -0500)
treef95548f11bbe52f37299aa908ef15865201c7295
parentf0034bfcc65192b91ea83e92f83dffb5608a5d4c
Send the total number of iterations with the ENCRYPT and DECRYPT
status messages. This can make it easier for a client to do use things
like progress bars when the number of iterations differs from the
configuration value (no file is open yet, and the file header contains
the actual number of iterations).

Also set the "iterations" configuration parameter after a successful
OPEN. This will keep the iteration setting for the next SAVE. To
change it, use OPTION ITERATIONS. The original configuration value is
now only used for new files.
COMMANDS
src/commands.c
src/commands.h
src/pwmd.c