enc.c (1.1.1.19) | enc.c (1.1.1.20) |
---|---|
1/* 2 * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved. 3 * 4 * Licensed under the Apache License 2.0 (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ --- 610 unchanged lines hidden (view full) --- 619 if (inl <= 0) 620 break; 621 if (BIO_write(wbio, (char *)buff, inl) != inl) { 622 BIO_printf(bio_err, "error writing output file\n"); 623 goto end; 624 } 625 } 626 if (!BIO_flush(wbio)) { | 1/* 2 * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved. 3 * 4 * Licensed under the Apache License 2.0 (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ --- 610 unchanged lines hidden (view full) --- 619 if (inl <= 0) 620 break; 621 if (BIO_write(wbio, (char *)buff, inl) != inl) { 622 BIO_printf(bio_err, "error writing output file\n"); 623 goto end; 624 } 625 } 626 if (!BIO_flush(wbio)) { |
627 BIO_printf(bio_err, "bad decrypt\n"); | 627 if (enc) 628 BIO_printf(bio_err, "bad encrypt\n"); 629 else 630 BIO_printf(bio_err, "bad decrypt\n"); |
628 goto end; 629 } 630 631 ret = 0; 632 if (verbose) { 633 BIO_printf(bio_err, "bytes read : %8ju\n", BIO_number_read(in)); 634 BIO_printf(bio_err, "bytes written: %8ju\n", BIO_number_written(out)); 635 } --- 70 unchanged lines hidden --- | 631 goto end; 632 } 633 634 ret = 0; 635 if (verbose) { 636 BIO_printf(bio_err, "bytes read : %8ju\n", BIO_number_read(in)); 637 BIO_printf(bio_err, "bytes written: %8ju\n", BIO_number_written(out)); 638 } --- 70 unchanged lines hidden --- |