aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-05-16Time for a new error code; this time GPG_ERR_UNEXPECTED_PACKETWerner Koch1-0/+5
-- We already have _tag which is used for ASN.1, _MSG which is used by protocols like WKS and TLS, and the GPG_ERR_UNEXPECTED which is unrelated the former one and means just that an error was not expected. OpenPGP also has some cases where a packet is not expected. A dedicated error code thus makes sense.
2025-04-24Post release updatesWerner Koch1-0/+6
--
2025-04-24Release 1.55.libgpg-error-1.55gpgrt-1.55Werner Koch1-1/+8
2025-04-17Post release updatesWerner Koch1-0/+7
--
2025-04-17Release 1.54libgpg-error-1.54gpgrt-1.54Werner Koch1-1/+9
2025-04-09Post release updatesWerner Koch1-0/+4
--
2025-04-09Release 1.53libgpg-error-1.53gpgrt-1.53Werner Koch1-1/+3
2025-04-08Post release updatesWerner Koch1-0/+4
--
2025-04-08Release 1.52libgpg-error-1.52gpgrt-1.52Werner Koch1-6/+9
2025-04-07argparse: Make getreg meta command work on Unix.Werner Koch1-0/+2
* src/argparse.c (_gpgrt_argparse_internal_s): Add fields no_registry and registry. (initialize): Init them. (emulated_registry_lookup): New. (handle_meta_getenv): Use it. * tests/etc/t-argparse.conf: Add a getreg meta command. * tests/t-argparse.c (opt): Add a disable-akr command. * tests/etc/Registry: New.
2025-04-07Allow name-value lookup w/o a trailing colon for the name.Werner Koch1-0/+1
* src/name-value.c (_gpgrt_name_value_entry): Add field namelen. (ascii_memcasecmp): New. (same_name_p): New. (valid_name): Strip the colon and return the length. (do_nvc_add): Set namelen. (_gpgrt_nvc_lookup): Simplify. * tests/t-name-value.c (test_getting_values): Add some extra tests. -- The requirement for a colon after the name is too cumbersome.
2025-04-07New public API gpgrt_nvc_* and gpgrt_nve_*Werner Koch1-0/+22
* src/name-value.c: New. * tests/t-name-value.c: New. * src/gpg-error.def.in: Add new functions. * src/gpg-error.h.in: Ditto. * src/gpg-error.vers: Ditto. * src/visibility.c: Ditto. * src/visibility.h: Ditto. -- These new functions were originally added to GnuPG taken from current GnuPG master. The license has been changed from (LGPL-3.0-or-later OR GPL-2.0-or-later) to LGPL-2.1-or-later: Everything was written by me or employees/contractors of g10 Code GmbH. The private key handling has been removed because that would require Libgcrypt functions. Some functions are changed.
2025-04-01New public API gpgrt_strlist_*Werner Koch1-2/+16
* src/strlist.c: Rename all functions to have a _gpgrt_strlist prefix. (append_to_strlist2, strlist_length): Remove. (_gpgrt_strlist_free): rtake care of the wipe flag. (_gpgrt_strlist_add): Add a flags arg to use it for prepend and append. Return an error on failure. (_gpgrt_strlist_tokenize): Ditto. (_gpgrt_strlist_copy): Chnage to return an error on failure. (_gpgrt_strlist_pop): Ditto. * src/Makefile.am (libgpg_error_la_SOURCES): Add strlist.c. * src/argparse.c (trim_spaces): Move to ... * src/stringutils.c (_gpgrt_trim_spaces): here and rename. * src/visibility.c: Add wrappers for all exported functions. * src/visibility.h: MArk exported functions as visisble. * src/gpg-error.def.in: Export new functions * src/gpg-error.vers: Ditto. * src/gpg-error.h.in (GPGRT_STRLIST_APPEND): New. (GPGRT_STRLIST_WIPE): New. (gpgrt_strlist_free): New. (gpgrt_strlist_add): New. (gpgrt_strlist_tokenize): New. (gpgrt_strlist_copy): New. (gpgrt_strlist_rev): New. (gpgrt_strlist_prev): New. (gpgrt_strlist_last): New. (gpgrt_strlist_pop): New. (gpgrt_strlist_find): New. (gpgrt_strlist_count): New inline function. -- This is a modified set of function as used by gpg for ages. These are quite useful functions and will be needed internally for some other planned features. The idea is to make their counterparts in gnupg wrapper around those new functions. After we have moved the secure memory stuff from Libgcrypt to here we can also implement a GPGRT_STRLICT_SECMEM flag to allow allocating strings here ion secure memory. For now we only have the WIPE flag which wipes the memory on free.
2024-12-12New Windows API gpgrt_w32_reg_get_string.Werner Koch1-0/+9
* src/w32-reg.c (_gpgrt_w32_reg_query_string): Implement a prefix for root and consider an empty string for root also HKCU. * src/visibility.c (gpgrt_w32_reg_get_string): New. * src/gpg-error.def.in: Add new function. * src/gpg-error.c (my_strusage): Print the Windows version (32 or 64 bit) of the binary. (main): New command --getreg. -- This function is already used internally and we have a similar function in GnuPG. It is much more convenient to work with this function. Also we can now pass the KEY_WOW64_32KEY andKEY_WOW64_64KEY flags to the registry read functions. For example !32key!HKLM\software\gnu\gnupg:ntdskeyserver returns the value using the KEY_WOW64_32KEY flag; likewise for !64key!. If !cross! is used the reversed flag of the binary type is used.
2024-11-11Post release updatesWerner Koch1-0/+7
--
2024-11-11Release 1.51libgpg-error-1.51gpgrt-1.51Werner Koch1-1/+22
2024-06-19Post release updatesWerner Koch1-0/+6
--
2024-06-19Release 1.50libgpg-error-1.50gpgrt-1.50Werner Koch1-1/+45
2024-04-25Post release updatesWerner Koch1-0/+6
--
2024-04-25Release 1.49libgpg-error-1.49Werner Koch1-1/+6
2024-04-25logging: New function gpgrt_logv_domain.Werner Koch1-1/+6
* src/gpg-error.h.in (gpgrt_logv_domain): New. Also add printf attributes to the other logv functions. * src/visibility.c (gpgrt_logv_domain): New. -- This function can be used instead of gpgrt_logv to provide a somain string. As of now this has no effect but we may later add an API to allow selection of diagnostics depending on the domain. There is also a new (buffer,length) argument which will eventually be used to provide a domain based gpgrt_log_printhex.
2024-04-22core: New function gpgrt_add_post_log_func.Werner Koch1-0/+5
* src/gpg-error.h.in (gpgrt_add_post_log_func): New. * src/gpg-error.vers: Add new function * src/gpg-error.def.in: Ditto. * src/visibility.c (gpgrt_add_post_log_func): New. * src/logging.c (struct post_log_func_item_s): New. (post_log_func_list): New. (_gpgrt_add_post_log_func): new. (run_post_log_funcs): New. (_gpgrt_logv_internal): Call for fatal and bug log levels. -- This is required in case an application or library needs to do do some quick cleanups after a log_fatal.
2024-02-23Post release updatesWerner Koch1-0/+7
--
2024-02-23Release 1.48libgpg-error-1.48gpgrt-1.48Werner Koch1-1/+1
2024-02-06core: Add "wipe" mode flag.Werner Koch1-1/+18
* src/gpgrt-int.h (struct _gpgrt_stream_internal): Add field "wipe". * src/estream.c (mem_free2): New. (struct estream_cookie_mem): Add flag "wipe". (func_mem_create): Add arg wipe. (func_mem_destroy): Wipe. (X_WIPE): New. (parse_mode): Parse "wipe" mode flag. (init_stream_obj): Set it. (do_close): Wipe internal struct with its static buffers. (doreadline): Pass wipe mode along to help buffer. (_gpgrt_mopen): Pass wipe mode. (_gpgrt_fopenmem): Ditto. -- GnuPG-bug-id: 6954 This is likely not complete but should wipe out buffers allocated by fopenmem.
2024-02-06argparser: Implement a command mode.Werner Koch1-0/+8
* src/gpg-error.h.in (ARGPARSE_FLAG_COMMAND): New. * src/argparse.c (struct _gpgrt_argparse_internal_s): Add flags explicit_cmd_mode, cmd_mode, and command_seen. (initialize): Init them. Mark default commands as commands. (handle_meta_command): New. (handle_metacmd): Add "command-mode" and "-command-mode". (find_long_option): Add arg only_commands. (arg_parse): Factor some code out to ... (handle_special_commands): new. (arg_parse): Implement the command-mode. * tests/t-argparse.c (main): Add some testing code. -- GnuPG-bug-id: 6978
2023-08-04build: Add build-aux/libtool.patch in the tarball.NIIBE Yutaka1-0/+1
* Makefile.am (EXTRA_DIST): build-aux/libtool.patch. Signed-off-by: NIIBE Yutaka <[email protected]>
2023-04-06Post release updatesWerner Koch1-0/+7
--
2023-04-06Release 1.47libgpg-error-1.47gpgrt-1.47Werner Koch1-1/+1
2023-04-06build: Make distcheck work againWerner Koch1-0/+15
* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): Add with --install-gpg-error-config.
2023-04-04core: Add GPG_ERR_SOURCE_TKD.NIIBE Yutaka1-0/+4
* src/err-sources.h.in (GPG_ERR_SOURCE_TKD): New. -- Signed-off-by: NIIBE Yutaka <[email protected]>
2022-10-07Post release updatesWerner Koch1-1/+7
--
2022-10-07Release 1.46libgpg-error-1.46gpgrt-1.46Werner Koch1-1/+25
2022-08-15build: Only install gpg-error-config when enabled.NIIBE Yutaka1-0/+5
* configure.ac (INSTALL_GPG_ERROR_CONFIG): New. * src/Makefile.am (bin_SCRIPTS, noinst_SCRIPTS): Conditionalize. -- GnuPG-bug-id: 5683 Signed-off-by: NIIBE Yutaka <[email protected]>
2022-04-07Post release updatesWerner Koch1-0/+6
--
2022-04-07Release 1.45libgpg-error-1.45gpgrt-1.45Werner Koch1-3/+5
2022-03-04w32: Support file names longer than MAX_PATH.Werner Koch1-0/+15
* src/sysutils.c (any8bitchar): Remove. (_gpgrt_fname_to_wchar): New. (_gpgrt_mkdir): Use instead of plain utf8 conversion. (_gpgrt_access): Reimplement using GetFileAttributesW so that long files names are supported. * src/estream.c (_gpgrt_w32_get_last_err_code): New. (func_file_create_w32): New. (_gpgrt_fopen): Handle the "sysopen" mode flag. Support mapping of /dev/null. (_gpgrt_freopen): Support mapping of /dev/null. * src/w32-gettext.c (load_domain): Allow long file names. * src/visibility.c (gpgrt_free_wchar): Make function public. (gpgrt_fname_to_wchar): Ditto. (gpgrt_utf8_to_wchar): Ditto. (gpgrt_wchar_to_utf8): Ditto. * src/w32-add.h (gpgrt_free_wchar): New prototype. (gpgrt_fname_to_wchar): Ditto. (gpgrt_utf8_to_wchar): Ditto. (gpgrt_wchar_to_utf8): Ditto. * src/gpg-error.def.in: Add them here too.
2022-01-27Post release updatesWerner Koch1-0/+6
--
2022-01-27Release 1.44libgpg-error-1.44gpgrt-1.44Werner Koch1-1/+13
* configure.ac: Bump LT version to C32/A32/R2.
2021-11-03Post-release updatesWerner Koch1-0/+6
--
2021-11-03Release 1.43libgpg-error-1.43gpgrt-1.43Werner Koch1-1/+25
2021-03-22Post release updatesWerner Koch1-0/+6
--
2021-03-22Release 1.42libgpg-error-1.42gpgrt-1.42Werner Koch1-2/+9
2021-03-22core: Add GPG_ERR_SOURCE_TPM2D.Werner Koch1-0/+5
* src/err-sources.h.in (GPG_ERR_SOURCE_TPM2D): New.
2021-02-10doc: Document another interface change in 1.37Werner Koch1-0/+1
-- The new inline function gpg_err_code_from_sqlite was missing in the NEWS file.
2020-12-21Post release updatesWerner Koch1-0/+6
--
2020-12-21Release 1.41libgpg-error-1.41gpgrt-1.41Werner Koch1-1/+4
2020-12-21Post release updatesWerner Koch1-0/+7
--
2020-12-21Release 1.40libgpg-error-1.40gpgrt-1.40Werner Koch1-1/+11
* configure.ac: Bump LT version to C31/A31/R0.
2020-10-19New public function gpgrt_access.Werner Koch1-0/+5
* src/gpg-error.h.in (gpgrt_access): New. * src/gpg-error.vers. src/gpg-error.def.in: Add new function. * src/sysutils.c (any8bitchar): New. (_gpgrt_access): New. * src/visibility.c (gpgrt_access): New. * src/spawn-w32.c (_gpgrt_spawn_process_detached): Use it. * src/argparse.c (try_versioned_conffile): Use it. * tests/t-stringutils.c (check_access): New simple test. -- This is basically a wrapper to allow handling of utf8 encoded file names on Windows. This also fixes the case for versioned config files in directories with non-ascii characters. The new test needs to be run manually on Windows using a directory with Unicode characters. GnuPG-bug-id: 5098