gpgme/src
Ingo Klöcker 25dd284b0c
core,w32: Pass file names with forward slashes to gpg and gpgtar
src/conversion.c, src/util.h (_gpgme_replace_backslashes): New.
src/engine-gpg.c (_add_arg): Add argument file_name. On Windows, replace
backslashes in file name arguments with forward slashes.
(add_arg_ext, add_arg_with_locp, add_arg, add_arg_pfx, add_gpg_arg,
add_gpg_arg_with_value, add_arg_len): Adjust call of _add_arg.
(add_file_name_arg, add_file_name_arg_len, add_gpg_arg_with_file_name):
New.
(add_file_name_arg_or_data): Call add_file_name_arg for file name.
(gpg_new): Call add_gpg_arg_with_file_name for home directory.
(gpg_decrypt): Call add_file_name_arg for output directory and output
file name.
(append_args_from_recipients_string): Call add_file_name_arg_len for
recipients file name.
(gpg_encrypt): Call add_file_name_arg for output file name, base
directory and input file name. Call add_gpg_arg_with_file_name to set
file name stored in message.
(gpg_encrypt_sign): Call add_file_name_arg for output file name, base
directory and input file name. Call add_gpg_arg_with_file_name to set
file name stored in message.
(gpg_sign): Call add_file_name_arg for output file name, base directory
and input file name. Call add_gpg_arg_with_file_name to set file name
stored in message.
(gpg_verify): Call add_file_name_arg for output directory and output
file name.
--

By passing all file names with forward slashes to gpg and gpgtar we
avoid problems caused by the quoting of backslashes.

GnuPG-bug-id: 7141
2024-06-04 16:52:24 +02:00
..
.gitignore .gitignore: flesh out rules and add subdirectory-.gitignores. 2012-04-20 16:05:11 +02:00
argparse.c Fix for modern compiler. 2022-09-15 13:45:35 +09:00
argparse.h doc: Replace http: by https: in core source files. 2016-11-16 13:27:00 +01:00
assuan-support.c doc: Fix typos in documentation and source code comments 2023-10-13 09:18:12 +02:00
ath.c posix: Use poll instead, when available, removing use of select. 2021-11-25 11:13:17 +09:00
ath.h posix: Use poll instead, when available, removing use of select. 2021-11-25 11:13:17 +09:00
b64dec.c core: Silence newer compiler warnings. 2018-12-17 16:47:27 +01:00
ChangeLog-2011 spelling: fix misspellings 2018-11-08 12:34:27 +07:00
cJSON.c core: New data flags "io-buffer-size" and "sensitive". 2021-06-14 19:51:28 +02:00
cJSON.h spelling: fix misspellings 2018-11-08 12:34:27 +07:00
cJSON.readme doc: convert more http:// links to https:// 2018-10-18 00:28:51 -04:00
context.h core: New context flag "no-auto-check-trustdb" 2022-11-04 10:38:41 +01:00
conversion.c core,w32: Pass file names with forward slashes to gpg and gpgtar 2024-06-04 16:52:24 +02:00
data-compat.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-estream.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data-fd.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-identify.c core: Also detect legacy X.509 v0 certificates. 2023-03-08 15:54:54 +01:00
data-mem.c core: Improve the debug messages even more. 2019-06-05 15:54:55 +02:00
data-stream.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data-user.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
data.c core: Use 64 bit instead of gpgme_off_t for some internal functions. 2023-06-15 11:01:46 +02:00
data.h core: Use 64 bit instead of gpgme_off_t for some internal functions. 2023-06-15 11:01:46 +02:00
debug.c core: Switch to logging via gpgrt 2023-02-10 11:12:52 +01:00
debug.h core: Avoid printf format warnings due to gpgme_ssize_t. 2023-04-17 15:05:22 +02:00
decrypt-verify.c core: Allow finalization of signature verification of unencrypted data 2023-02-10 09:54:03 +01:00
decrypt.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
delete.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
dirinfo.c doc: Fix typos in documentation and source code comments 2023-10-13 09:18:12 +02:00
edit.c core: Allow nullptr for key on card-edit 2022-11-15 10:03:23 +01:00
encrypt-sign.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
encrypt.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
engine-assuan.c core: New function gpgme_op_revsig. 2020-10-29 12:57:10 +01:00
engine-backend.h core: Use offline mode for all operations of gpgsm engine 2023-08-14 12:24:00 +02:00
engine-g13.c core: New function gpgme_op_revsig. 2020-10-29 12:57:10 +01:00
engine-gpg.c core,w32: Pass file names with forward slashes to gpg and gpgtar 2024-06-04 16:52:24 +02:00
engine-gpgconf.c core: Make the gpgconf option parsing of string types more robust 2021-11-25 11:48:11 +01:00
engine-gpgsm.c core: Support direct signing of file with gpg 2023-12-19 13:09:33 +01:00
engine-spawn.c core: New function gpgme_op_revsig. 2020-10-29 12:57:10 +01:00
engine-uiserver.c core: Support direct signing of file with gpg 2023-12-19 13:09:33 +01:00
engine.c core: speedup gpgme_get_key 2024-05-21 10:59:43 +02:00
engine.h core: Use offline mode for all operations of gpgsm engine 2023-08-14 12:24:00 +02:00
error.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
export.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
genkey.c core: Implement adding ADSKs through gpgme_createsubkey 2024-05-22 10:16:19 +02:00
get-env.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
getauditlog.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
gpgconf.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
gpgme-config.in build: Provide gpgme.pc, generated by configure. 2018-11-12 09:03:49 +09:00
gpgme-glib.pc.in build: Provide gpgme-glib.pc too. 2018-11-12 09:59:05 +09:00
gpgme-json.c json: Add information about revocation keys to key list result 2024-05-21 16:38:59 +02:00
gpgme-tool.c gpgme-tool: Support use of Windows HANDLE for INPUT/OUTPUT/MESSAGE. 2023-09-29 11:12:13 +09:00
gpgme-w32spawn.c Change gpgme-w32-spawn to unicode 2023-10-25 17:42:27 +02:00
gpgme.c core: New context flag "no-auto-check-trustdb" 2022-11-04 10:38:41 +01:00
gpgme.def core: Support usage of gpgtar for verifying a signed archive 2023-01-25 11:26:34 +01:00
gpgme.h.in Merge branch 'ikloecker/t7118-revkeys' 2024-05-24 10:47:15 +02:00
gpgme.m4 gpgme.m4: Set $host correctly always. 2024-05-16 09:27:58 +09:00
gpgme.pc.in build: Omit -I... and -L... for standard paths in pkgconfig file 2022-08-22 19:09:54 +02:00
import.c core: Check STATUS_FAILURE in import operations. 2024-03-11 13:53:18 +01:00
isascii.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
key.c core: Add information about revocation keys to keys 2024-05-21 16:38:59 +02:00
keylist.c core: Add information about revocation keys to keys 2024-05-21 16:38:59 +02:00
keysign.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
libgpgme.vers core: Support usage of gpgtar for verifying a signed archive 2023-01-25 11:26:34 +01:00
Makefile.am Change gpgme-w32-spawn to unicode 2023-10-25 17:42:27 +02:00
mbox-util.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
mbox-util.h doc: Replace http: by https: in core source files. 2016-11-16 13:27:00 +01:00
op-support.c core: percent decode filename 2023-11-30 00:06:08 +01:00
opassuan.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
ops.h core: Add information about revocation keys to keys 2024-05-21 16:38:59 +02:00
parsetlv.c core: Protect against a theoretical integer overflow in parsetlv.c 2022-10-24 13:50:41 +02:00
parsetlv.h Spelling fixes for comments and doc 2017-12-08 05:59:11 +01:00
passphrase.c Parse STATUS_CANCELED_BY_USER. 2020-11-03 17:47:44 -08:00
passwd.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
posix-io.c core: Don't keep using deprecated ath_ API. 2022-04-05 14:25:00 +09:00
posix-util.c core: Support the new macOS Homebrew location. 2023-04-20 13:35:50 +02:00
priv-io.h w32: Remove all support for WindowsCE 2018-10-31 12:35:14 +01:00
progress.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
putc_unlocked.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
queryswdb.c core: Fix format string errors in trace macros 2018-11-16 16:57:09 +01:00
revsig.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
sema.h core: Use gpgrt locking for thread safeness 2016-11-10 13:33:13 +01:00
setenv.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
setexpire.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
sig-notation.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
sign.c core: Support direct signing of file with gpg 2023-12-19 13:09:33 +01:00
signers.c core: Protect the trace macros for fun and profit. 2018-11-16 18:17:22 +01:00
spawn.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
status-table.c Parse STATUS_CANCELED_BY_USER. 2020-11-03 17:47:44 -08:00
stpcpy.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
sys-util.h core: New global flags "inst-type". 2022-10-26 12:10:57 +02:00
tofupolicy.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
trust-item.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
trustlist.c doc: Fix typos in documentation and source code comments 2023-10-13 09:18:12 +02:00
ttyname_r.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
util.h core,w32: Pass file names with forward slashes to gpg and gpgtar 2024-06-04 16:52:24 +02:00
verify.c core: Preserve more specific existing failure code 2023-11-14 13:51:24 +01:00
version.c doc: Fix typos in documentation and source code comments 2023-10-13 09:18:12 +02:00
versioninfo.rc.in core: Update copyright notices 2023-02-10 11:12:52 +01:00
vfs-create.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
vfs-mount.c core: Simplify the trace maros by using variadics. 2018-11-16 16:25:49 +01:00
w32-glib-io.c doc: Fix typos in documentation and source code comments 2023-10-13 09:18:12 +02:00
w32-io.c doc: Fix typos in documentation and source code comments 2023-10-13 09:18:12 +02:00
w32-util.c doc: Fix typos in documentation and source code comments 2023-10-13 09:18:12 +02:00
wait-global.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait-private.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait-user.c Add SPDX identifiers to most source files 2018-11-16 13:27:33 +01:00
wait.c core: Fix error return value of _gpgme_run_io_cb. 2019-06-06 18:57:28 +02:00
wait.h Remove all trailing whitespace from source files 2012-09-25 15:29:49 +02:00