Use OPENSSL_OPTS for encryption too

This commit is contained in:
Tim Byrne 2020-10-05 22:32:18 -05:00
parent 78aa84eddb
commit c2a4d9cb27
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
1 changed files with 2 additions and 1 deletions

3
yadm
View File

@ -996,7 +996,8 @@ function _encrypt_to() {
require_openssl
OPENSSL_CIPHERNAME="$(_get_openssl_ciphername)"
$OPENSSL_PROGRAM enc -e "-${OPENSSL_CIPHERNAME}" -salt -out "$output_archive"
_set_openssl_options
$OPENSSL_PROGRAM enc -e "${OPENSSL_OPTS[@]}" "-${OPENSSL_CIPHERNAME}" -salt -out "$output_archive"
;;
*)