diff options
Diffstat (limited to 'pith')
-rw-r--r-- | pith/smime.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pith/smime.c b/pith/smime.c index 6eacf745..6f9efc7f 100644 --- a/pith/smime.c +++ b/pith/smime.c @@ -2261,10 +2261,10 @@ encrypt_file(char *fp, char *text, PERSONAL_CERT *pc) BIO_puts(out, text); } } - else if((out = BIO_new_file(fp, "rb")) != NULL){ + else if((out = BIO_new_file(fp, "rb")) != NULL) BIO_read_filename(out, fp); - if((p7 = PKCS7_encrypt(encerts, out, cipher, 0)) != NULL){ + if((p7 = PKCS7_encrypt(encerts, out, cipher, 0)) != NULL){ BIO_set_close(out, BIO_CLOSE); BIO_free(out); if((out = BIO_new_file(fp, "w")) != NULL){ @@ -2272,7 +2272,6 @@ encrypt_file(char *fp, char *text, PERSONAL_CERT *pc) rv = PEM_write_bio_PKCS7(out, p7); BIO_flush(out); } - } } if(out != NULL) |