1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-29 19:48:43 +01:00
gnupg/common
Werner Koch b287fb5775
Implement GNUPG_ASSUME_COMPLIANCE envvar for testing
* common/compliance.c (assumed_de_vs_compliance): New.
(get_compliance_cache): Check envvar and fake compliance.
(gnupg_status_compliance_flag): Return 2023 for de-vs if in faked
mode.
* g10/gpg.c (gpgconf_list): For compliance_de_vs return 23 or 2023.
--

The user visible changes are that

   GNUPG_ASSUME_COMPLIANCE=de-vs gpgconf --list-options gpg \
     | awk -F: '$1=="compliance_de_vs" {print $8}'

returns 2023 if "compliance de-vs" is found in gpg.conf.  If
eventually the software is arpproved the returned value will be 23 and
not 1 as it was before.  Consumers should check whether they see value
of true (Kleopatra does this right now) and also check whether the
value is > 2000 and in this case print a beta/non-approved warning.

The envvar is currently used to assume that the underlying libgcrypt
is compliant and approved.  This is not yet the case but eventually
libgcrypt will announce this itself and from then on the envvar is not
anymore required for testing.
2024-10-07 09:59:26 +02:00
..
agent-opt.c agent: New OPTION pretend-request-origin 2018-03-23 08:37:14 +01:00
all-tests.scm tests: More fix for semihosted environment. 2022-12-01 17:09:45 +09:00
asshelp2.c sm: Print diagnostic about CRL problems due to Tor mode. 2022-04-11 17:57:14 +02:00
asshelp.c common: Do not call the agent with the obsolete --use-standard-socket. 2024-08-22 18:30:51 +02:00
asshelp.h common: Prepare for more flags in start_new_service. 2023-08-29 13:18:13 +02:00
audit.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
audit.h indent: Fix spelling 2024-05-31 12:28:32 +02:00
call-gpg.c common: On Windows, we care about how PIPE handles are inherited. 2024-07-09 15:15:13 +09:00
call-gpg.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccparray.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ccparray.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
ChangeLog-2011.include Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
ChangeLog.jnlib common: Remove JNLIB from boiler plate (jnlib merge). 2015-04-24 16:42:28 +02:00
common-defs.h common: Remove Windows CE support in common. 2022-11-16 10:05:37 +09:00
comopt.c common: Change allocation of the comopt symbol. 2023-04-04 16:51:58 +02:00
comopt.h common: Change allocation of the comopt symbol. 2023-04-04 16:51:58 +02:00
compliance.c Implement GNUPG_ASSUME_COMPLIANCE envvar for testing 2024-10-07 09:59:26 +02:00
compliance.h gpgsm: Support ECDSA in de-vs mode. 2023-11-08 17:09:22 +01:00
convert.c dirmngr: New option --ignore-cert 2021-10-06 10:35:51 +02:00
dotlock.c dotlock: Avoid leaking directory handle. 2024-07-22 13:38:09 +09:00
dotlock.h common: Enhance dotlock, so that we can have a CLI util. 2023-12-19 15:59:41 +09:00
dynload.h common,dirmngr:w32: Add include files. 2024-02-15 14:40:33 +09:00
exaudit.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
exechelp-posix.c common: On Windows, we care about how PIPE handles are inherited. 2024-07-09 15:15:13 +09:00
exechelp-w32.c common: On Windows, we care about how PIPE handles are inherited. 2024-07-09 15:15:13 +09:00
exechelp.h common: On Windows, we care about how PIPE handles are inherited. 2024-07-09 15:15:13 +09:00
exectool.c common: Fix gnupg_exec_tool_stream for INEXTRA==NULL. 2024-09-25 11:17:51 +09:00
exectool.h Spelling cleanup. 2020-02-18 18:07:46 -05:00
exstatus.awk Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
fwddecl.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
gc-opt-flags.h gpgconf: Further simplify the gpgconf option processing. 2020-03-14 19:12:41 +01:00
get-passphrase.c common: Prepare for more flags in start_new_service. 2023-08-29 13:18:13 +02:00
get-passphrase.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
gettime.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
gettime.h common: New functions timegm_u64, isotime2epoch_u64. 2023-10-26 12:39:43 +02:00
gnupg.ico w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpgrlhelp.c Support a history file in gpg-card and gpg-connect-agent. 2020-07-02 15:48:55 +02:00
helpfile.c Replace most of the remaining stdio calls by estream calls. 2020-10-20 12:15:56 +02:00
homedir.c build: Remove configure option --enable-gpg-is-gpg2 2024-09-11 14:30:40 +02:00
host2net.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
i18n.c common: Respect gpgconf.ctl when looking up translations 2021-10-06 13:42:50 +02:00
i18n.h Fix typos found using codespell. 2015-11-17 12:50:22 +01:00
init.c common,dirmngr:w32: Add include files. 2024-02-15 14:40:33 +09:00
init.h common: Fix for GPG_ERR_SOURCE_DEFAULT check. 2022-09-14 16:59:56 +09:00
iobuf.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
iobuf.h indent: Fix spelling 2024-05-31 12:28:32 +02:00
isascii.c common: Change license of isascii.c to all-premissive, 2015-12-14 16:21:19 +01:00
kem.c Require Libgcrypt 1.11.0 2024-04-23 11:09:40 +02:00
ksba-io-support.c gpgsm: Print PROGRESS status lines. 2023-06-15 10:37:07 +02:00
ksba-io-support.h gpgsm: Print PROGRESS status lines. 2023-06-15 10:37:07 +02:00
localename.c common: Fix warning for portability. 2017-03-07 10:42:46 +09:00
logging.h Require libgpg-error 1.29 and remove internal logging functions. 2018-06-12 13:46:00 +02:00
Makefile.am common: Rename to kem.c from kmac.c. 2024-04-10 11:14:25 +09:00
mapstrings.c common: Fix translations in --help for gpgrt < 1.47 2022-12-16 17:29:12 +01:00
mbox-util.c common: Add gnupg_memstr to replace static versions. 2023-09-26 14:17:37 +02:00
mbox-util.h common: Prepare for parsing mail sub-addresses. 2018-11-12 07:44:33 +01:00
membuf.c common: Add set_membuf_err. 2021-12-20 19:34:34 +01:00
membuf.h common: Add set_membuf_err. 2021-12-20 19:34:34 +01:00
miscellaneous.c Remove the deprecated gcry_set_log_handler. 2024-04-23 16:21:49 +02:00
mischelp.c common: New functions timegm_u64, isotime2epoch_u64. 2023-10-26 12:39:43 +02:00
mischelp.h common: New functions timegm_u64, isotime2epoch_u64. 2023-10-26 12:39:43 +02:00
mkdir_p.c Replace all calls to stat by gnupg_stat. 2020-10-20 16:38:06 +02:00
mkdir_p.h indent: Fix spelling 2024-05-31 12:28:32 +02:00
mkerrors all: fix more spelling errors 2018-10-25 16:53:05 -04:00
mkerrtok all: fix more spelling errors 2018-10-25 16:53:05 -04:00
mkstrtable.awk common: Fix AWK portability. 2019-04-16 13:24:10 +09:00
name-value.c common: Check wether to set the modified flag in nve_set. 2023-11-21 08:56:24 +01:00
name-value.h agent: Update the key file only if not changed. 2023-11-21 08:37:41 +01:00
openpgp-fpr.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
openpgp-oid.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
openpgp-s2k.c Fix a reference in comment. 2019-07-12 12:11:26 +09:00
openpgpdefs.h gpg: Switch Kyber to the final algo id and add it to the menu. 2024-08-27 10:44:17 +02:00
percent.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
pkscreening.c gpg,sm: New option --with-key-screening. 2017-10-17 21:10:19 +02:00
pkscreening.h gpg,sm: New option --with-key-screening. 2017-10-17 21:10:19 +02:00
README common: Update README. 2016-03-02 14:27:30 +01:00
recsel.c common: Add gnupg_memstr to replace static versions. 2023-09-26 14:17:37 +02:00
recsel.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
server-help.c common: New functions get_option_value and ascii_strupr. 2019-02-08 11:13:33 +01:00
server-help.h common: New functions get_option_value and ascii_strupr. 2019-02-08 11:13:33 +01:00
session-env.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
session-env.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
sexp-parse.h indent: Fix spelling 2024-05-31 12:28:32 +02:00
sexputil.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
shareddefs.h agent: New OPTION pretend-request-origin 2018-03-23 08:37:14 +01:00
signal.c gpg,common,scd,sm: Function prototype fixes for modern compiler. 2022-09-13 16:34:00 +09:00
simple-pwquery.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
simple-pwquery.h Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09:00
ssh-utils.c Use gpgrt_b64* API of libgpg-error. 2023-09-26 13:34:50 +09:00
ssh-utils.h scd: Let READKEY support --format=ssh option. 2022-03-02 14:07:46 +09:00
status.c dirmngr: Distinguish between "no crl" and "crl not trusted". 2023-03-09 18:28:39 +01:00
status.h gpg: Add option --assert-pubkey_algo. 2024-02-10 14:26:55 +01:00
stringhelp.c common: New function scan_secondsstr. 2023-10-14 17:14:22 +02:00
stringhelp.h common: Add gnupg_memstr to replace static versions. 2023-09-26 14:17:37 +02:00
strlist.c common: New function tokenize_to_strlist. 2024-05-31 17:36:41 +02:00
strlist.h common: New function tokenize_to_strlist. 2024-05-31 17:36:41 +02:00
sysutils.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
sysutils.h gpg,gpgsm: New option --disable-fd-translation. 2024-03-26 15:46:56 +01:00
t-ccparray.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
t-convert.c common: New function hex2fixedbuf. 2019-10-01 10:32:31 +02:00
t-dotlock.c common: Add an info callback to dotlock. 2023-12-18 15:21:26 +01:00
t-exechelp.c Use gpgrt_process_spawn API from libgpg-error. 2024-07-09 10:04:16 +09:00
t-exectool.c Replace all calls to access by gnupg_access 2020-10-20 12:15:55 +02:00
t-gettime.c common: New function scan_secondsstr. 2023-10-14 17:14:22 +02:00
t-helpfile.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
t-iobuf.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
t-mapstrings.c common: New function map_static_strings 2022-03-18 14:14:39 +01:00
t-mbox-util.c tests: Add two user-id parsing test cases. 2019-09-17 16:19:28 +02:00
t-name-value.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
t-openpgp-oid.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
t-percent.c Spelling cleanup. 2020-02-18 18:07:46 -05:00
t-recsel.c common: Fix t-recsel. 2022-09-14 15:42:03 +09:00
t-session-env.c w32: Exclude tests with HOME. 2022-04-06 13:28:15 +09:00
t-sexputil.c tests: Cope with broken Libgcrypt versions 2021-06-22 12:30:46 +02:00
t-ssh-utils.c tests: Fix warning in common/t-ssh-utils.c 2022-04-14 10:14:51 +02:00
t-stringhelp.c Remove remaining support for WindowsCE 2022-06-03 10:08:21 +02:00
t-strlist.c common: New function tokenize_to_strlist. 2024-05-31 17:36:41 +02:00
t-support.c Clarify text of LGPLv2+/GPLv2+ licensed files. 2017-02-24 13:48:28 +01:00
t-support.h gpg: Add option --assert-pubkey_algo. 2024-02-10 14:26:55 +01:00
t-sysutils.c Remove remaining support for WindowsCE 2022-06-03 10:08:21 +02:00
t-timestuff.c Clarify text of LGPLv2+/GPLv2+ licensed files. 2017-02-24 13:48:28 +01:00
t-w32-cmdline.c common,w32: Implement globing of command line args. 2021-03-04 16:59:21 +01:00
t-w32-reg.c gpgconf: Improve registry dumping. 2022-08-02 14:35:38 +02:00
t-zb32.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
tlv-builder.c indent: Fix spelling 2024-05-31 12:28:32 +02:00
tlv-parser.c sm: More improvements for PKCS#12 parsing for latest IVBB changes. 2024-08-06 17:51:01 +02:00
tlv.c doc: Fix spelling errors found by lintian. 2024-01-29 09:16:21 +01:00
tlv.h sm: More improvements for PKCS#12 parsing for latest IVBB changes. 2024-08-06 17:51:01 +02:00
ttyio.c w32: Add fallback in case the Windows console can't cope with Unicode. 2021-06-22 11:12:28 +02:00
ttyio.h Support a history file in gpg-card and gpg-connect-agent. 2020-07-02 15:48:55 +02:00
types.h build: Use modern Autoconf check for types. 2020-11-18 13:36:30 +09:00
userids.c kbx: Fix keyboxd searching with multiple patterns. 2021-07-08 13:57:13 +02:00
userids.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
utf8conv.c gpg,common,scd,sm: Function prototype fixes for modern compiler. 2022-09-13 16:34:00 +09:00
utf8conv.h Clarify text of LGPLv2+/GPLv2+ licensed files. 2017-02-24 13:48:28 +01:00
util.h indent: Fix spelling 2024-05-31 12:28:32 +02:00
utilproto.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
w32-cmdline.c common: Rename w32-misc.c to w32-cmdline.c 2021-03-04 17:14:02 +01:00
w32-reg.c gpgconf: Improve registry dumping. 2022-08-02 14:35:38 +02:00
w32help.h gpgconf: Improve registry dumping. 2022-08-02 14:35:38 +02:00
w32info-rc.h.in speedo: Patch ELF binaries to use built libraries 2024-01-12 10:52:00 +01:00
xasprintf.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
xreadline.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
yesno.c Clean up word replication. 2017-02-21 13:11:46 -05:00
zb32.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
zb32.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00

Common functionality used by all modules of GnuPG.