| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* src/gpg-error.c (main): Add new commands mkdir and chdir. Allow for
commands w/o dashes.
--
Again some more or less useful stuff for testing on Windows.
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.c (main): Implement command --fopen. Also ignore log
file settings from the Registry.
--
To test estream functions it is useful to have commands to run some of
them. Here we use gpgrt_fopen (fname, "r,sysopen") for the --fopen
command.
|
|
|
|
|
| |
* configure.ac (GPGRT_STD_COPYRIGHT_LINE): New.
* src/gpg-error.c (my_strusage): Use it here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.c (main): Add printing code.
--
This was lost while changing to the included option parser back in
2018. The new code also does some prettying of the output.
Fixes-commit: 11ce9bc3d6fe75859e18112824ae7ec3ca0fc8df
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.c (get_err_from_codesymbol): New.
(main): Use it here.
--
Saves lot of typing for example when looking up an error description
using --desc.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.c (main): Fix conditional compilation.
--
Reported-by: Rey Abeleda <[email protected]>
Signed-off-by: NIIBE Yutaka <[email protected]>
|
|
|
|
|
|
| |
* configure.ac: Bump LT version to C26/A26/R0.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/w32-gettext.c (struct override_locale): new.
(my_nl_locale_name): Take care of that.
(gpgrt_w32_override_locale): New.
* src/gpg-error.def.in: Add gpgrt_w32_override_locale.
* src/gpg-error.c: New command --locale for Windows.
--
GnuPG-bug-id: 3733
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.c (main): Remove a log_debug.
--
Also a few typo fixes.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
| |
* src/gpg-error.c (show_usage): Remove.
(my_strusage): New.
(main): Change to use argparse. Also use log_error.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
| |
* src/gpg-error.c (print_desc): Shortcur for unknown symbols.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/errorref.txt: Remove all tabs.
* doc/Makefile.am (install-data-local): New to install errorref.txt.
(uninstall-local): New.
(errorref.txt.x): New.
* src/Makefile.am (gpg_error_CPPFLAGS): Define PKGDATADIR
* src/gpg-error.c (print_desc): New.
(show_usage): New.
(main): Improve option parser. Add new option --desc. Call
print_desc.
--
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
| |
* src/gpg-error.c (main): Add new option.
|
|
|
|
|
|
| |
* src/gpg-error.c (main): Add option --help and --defines.
Signed-off-by: Werner Koch <[email protected]>
|
|
|
|
| |
* src/gpg-error.c (get_err_from_str): Init SAVED_CHAR.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/gpg-error.h.in (gpgrt_init): New macro.
(gpgrt_check_version): New prototype.
* src/init.c (_gpg_err_init): Rename from gpg_err_init.
(_gpg_err_deinit): Rename from gpg_err_deinit.
* src/visibility.c (gpg_err_init): New.
(gpg_err_deinit): New.
(gpgrt_check_version): New.
* src/gpg-error.vers (gpg_err_init, gpg_err_deinit): Add missing
symbols.
(gpgrt_check_version): New.
* src/gpg-error.def.in (gpg_err_init, gpg_err_deinit): Add missing
symbols.
(gpgrt_check_version): New.
* src/gpg-error.c (main): Use gpgrt_init macro.
|
| |
|
| |
|
|
|
|
|
| |
Fix non-w32ce dependency problem.
|
| |
|
|
|
|
|
| |
* src/gpg-error.c (get_err_from_number): Fix last change.
|
|
|
|
|
|
| |
* src/gpg-error.c (get_err_from_number): Support source and code
number in split format like "7.17".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* README: Switch to tar.bz2 and sha1sum.
* src/gpg-error.c (main): Add option --version.
* autogen.sh (FORCE): Add option --force.
* intl/: Removed.
* Makefile.am (SUBDIRS): Removed intl.
* configure.ac (AM_GNU_GETTEXT): Use external flag
* src/Makefile.am: Removed -I../intl.
|
|
|
|
|
|
|
| |
* src/init.c (get_locale_dir): Return NULL instead of garbage.
* src/gpg-error.c (get_locale_dir): Likewise.
Submitted by Simon Josefsson <[email protected]>.
|
|
|
|
|
|
|
|
| |
* src/init.c (gpg_err_init) [!ENABLE_NLS]: Do not initialize the
locale.
* src/gpg-error.c (i18n_init) [!ENABLE_NLS]: Likewise.
Patch submitted by Nils Durner <[email protected]>.
|
| |
|
|
|
|
|
|
| |
* src/Makefile.am (gpg_error_CPPFLAGS): New variable.
* src/gpg-error.c (i18n_init): Don't return anything.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* src/Makefile.am (arch_sources): New variable.
(libgpg_error_la_SOURCES): Add $(arch_sources).
* src/gettext.h [HAVE_W32_SYSTEM]: Include w32-gettext.h.
* src/w32-gettext.h: New file.
* src/w32-gettext.c: New file.
* src/gpg-error.h.in: Check for gcc's constructor attribute.
Use it for gpg_err_init.
(GPG_ERR_INITIALIZED): Define if constructor is available.
* src/gpg-error.c (main) [GPG_ERR_INITIALIZED]: Don't invoke
gpg_err_init.
(i18n_init): Call bindtextdomain as well. Now that gpg-error has
its own gettext implementation, we can't rely on it anymore.
Also, repeat all the w32 stuff for fetching the registry.
|
|
|
|
|
|
|
|
|
|
|
| |
* src/Makefile.am (libgpg_error_la_SOURCES): Add init.c.
* src/init.c: New file.
* src/gpg-error.h.in (gpg_error_init): New function.
* src/gpg-error.def: Add gpg_err_init.
* src/gpg-error.c: Remove SIMPLE_GETTEXT stuff.
(i18n_init): Don't bind text domain.
(main): Call gpg_err_init.
|
|
|
|
|
|
|
|
|
| |
* src/Makefile.am (gpg_error_CPPFLAGS): New variable.
(localedir): Likewise.
* gpg-error.c: Include the gettext headers.
(init_i18n): New function.
(main): Call init_i18n, gettextize messages.
|
|
|
|
|
| |
* src/gpg-error.c (main): Return zero on success.
|
| |
|
|
* src/Makefile.am (noinst_PROGRAMS): New variable.
(gpg_error_LDADD): New variable.
(gpg_error_SOURCES): New variable.
(EXTRA_DIST): Add mkheader.awk and gpg-error.h.in.
(BUILT_SOURCES): Add err-sources-sym.h, err-codes-sym.h and
errnos-sym.h.
(CLEANFILES): Add err-sources-sym.h, err-codes-sym.h,
errnos-sym.h and gpg-error.h.
(err-codes.h, err-sources.h): Add -v textidx=3 to mkstrtable.awk
invocation.
(err-codes-sym.h): New target.
(err-sources-sym.h): New target.
(gpg-error.h): New rule.
* src/mkstrtable.awk: Skip the second field (which contains the
error code symbol).
(FS): Allow more than one tab as field separator.
Allow to specify the field to be used as text with the variable
textidx.
Allow to suppress gettext markers in the output.
Allow to specify a prefix to the messages.
Allow to specify a namespace for the variable and macro names.
* src/mkerrnos.awk (FS): Initialize. Understand variable
errnoidx, which defaults to 2, to cope with the error names being
in a different column than the first.
* src/mkerrcodes1.awk: Likewise. Use \t as separator.
* src/mkheader.awk: New file.
* src/errnos.in: Add error code numbers (relativ to
GPG_ERR_SYSTEM_ERROR).
* src/strerror-sym.c: New file.
* src/strsources-sym.c: New file.
* src/err-codes.h.in: Add the error code symbol for every error
code.
(GPG_ERR_BUFFER_TOO_SHORT): Fix error code (it is 200, not 199).
* src/err-sources.h.in: Likewise.
* src/gpg-error.h.in: New file.
* src/gpg-error.h: File removed.
* src/gpg-error.c: New file.
|