Fixed two bugs, the first of which is mine:     - If a signed digest was incorrectly written for a non-file, do not leak or attempt to validate the digest -- ignore it.     - If no new data is encrypted, but the output buffer is not empty, there is still data that needs to be written -- don't exit.
Fixed two bugs, the first of which is mine:
    - If a signed digest was incorrectly written for a non-file, do not leak or attempt to validate the digest -- ignore it.
    - If no new data is encrypted, but the output buffer is not empty, there is still data that needs to be written -- don't exit.


git-svn-id: bb0627f6f70d46b61088c62c6186faa4b96a9496@3714 91ce42f0-d328-0410-95d8-f526ca767f89

rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula,rkorzeniewski/bacula