550 |
_gpgme_gpg_add_arg( ctx->gpg, "--yes" ); |
_gpgme_gpg_add_arg( ctx->gpg, "--yes" ); |
551 |
if( nfiles > 1 || !output ) |
if( nfiles > 1 || !output ) |
552 |
_gpgme_gpg_add_arg( ctx->gpg, "--no-mangle-dos-filenames" ); |
_gpgme_gpg_add_arg( ctx->gpg, "--no-mangle-dos-filenames" ); |
553 |
if( ctx->pipemode || nfiles > 1 ) |
if( ctx->use_pipemode || nfiles > 1 ) |
554 |
_gpgme_gpg_add_arg( ctx->gpg, "--decrypt-files" ); |
_gpgme_gpg_add_arg( ctx->gpg, "--decrypt-files" ); |
555 |
else |
else |
556 |
_gpgme_gpg_add_arg( ctx->gpg, "--decrypt" ); |
_gpgme_gpg_add_arg( ctx->gpg, "--decrypt" ); |
557 |
|
|
558 |
/* cannot use --output with --decrypt-files */ |
/* cannot use --output with --decrypt-files */ |
559 |
if( nfiles == 1 && !ctx->pipemode && output ) { |
if( nfiles == 1 && !ctx->use_pipemode && output ) { |
560 |
_gpgme_gpg_add_arg( ctx->gpg, "--output" ); |
_gpgme_gpg_add_arg( ctx->gpg, "--output" ); |
561 |
_gpgme_gpg_add_arg( ctx->gpg, output ); |
_gpgme_gpg_add_arg( ctx->gpg, output ); |
562 |
} |
} |