Correctly set a terminator.
Add a new API, archive_write_set_passphrase_callback, for encryption.
Implement reading a passphrase from ttys.
Fix build failure on Ubuntu.