Page MenuHome GnuPG
Feed Advanced Search

Oct 27 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

@werner - having another argument might be useful. Indeed, pthread_atfork has three callback functions as its arguments (prepare, parent, and child).

Oct 27 2022, 10:12 AM · gnupg, libassuan, gpgrt
werner added a comment to T6249: gpgrt: spawn functions.

I general I agree.

Oct 27 2022, 8:44 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

To have clear semantics, I propose a change to gpgrt_spawn_process_fd (calling SPAWN_CB, instead of AFTER_FORK_CB, and give it return value), and exporting gpgrt_close_all_fds to users.

Oct 27 2022, 7:55 AM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.

By the commit rE43c1e85fe29a: spawn: Expose spawn functions., spawn functions are exposed now. The API is compatible to the one of internal functions in GnuPG master (2.3).
Semantics is not well-defined portably for:

  • gpgrt_spawn_process: EXCEPT only makes sense in POSIX. User could expect that the API does closing all fds except fds specified by EXCEPT in POSIX.
  • gpgrt_spawn_process_fd: AFTER_FORK_CB only makes sense in POSIX. User could specify the callback so that it can control sigmask, envvar, open/close/dup-ing file descriptors, making sure releasing some resources beforehand, etc.
Oct 27 2022, 4:11 AM · gnupg, libassuan, gpgrt

Oct 21 2022

gniibe added a comment to T6249: gpgrt: spawn functions.

I see. I understand the use cases for POSIX to keep some file descriptors.

Oct 21 2022, 8:41 AM · gnupg, libassuan, gpgrt

Oct 20 2022

werner added a comment to T6249: gpgrt: spawn functions.

without this list we don't have an option to keep file descriptors open; its not just stderr but for example log files and descriptors which pare passed by other meands than libassuan functions.

Oct 20 2022, 1:52 PM · gnupg, libassuan, gpgrt
gniibe added a comment to T6249: gpgrt: spawn functions.
  • assuan_pipe_connect and internal _assuan_spawn
Oct 20 2022, 8:13 AM · gnupg, libassuan, gpgrt

Oct 19 2022

gniibe triaged T6249: gpgrt: spawn functions as Normal priority.
Oct 19 2022, 3:12 AM · gnupg, libassuan, gpgrt

Oct 14 2022

gniibe added a comment to T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.

By 1/N...5/N, it works. And it shows the API needs clarification and possible modification/fixes; As written in the comment of system-w32.c, fd == POSIX fd semantics is good, which asks API/ABI break.

Oct 14 2022, 4:57 AM · Windows, libassuan, Feature Request

Oct 12 2022

gniibe added parent tasks for T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows: T4655: Windows 64-bit: gnupg_fd_t, assuan_fd_t and int for fd in the API, and casts, T4656: Windows 64-bit: functions which use pid_t.
Oct 12 2022, 3:44 AM · Windows, libassuan, Feature Request
gniibe claimed T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.
Oct 12 2022, 3:43 AM · Windows, libassuan, Feature Request
gniibe created T6236: libassuan: Support sendfd/recvfd (possibly by new API) on Windows.
Oct 12 2022, 3:43 AM · Windows, libassuan, Feature Request

Sep 22 2022

werner changed the status of T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH from Open to Testing.
Sep 22 2022, 11:01 AM · Feature Request, libassuan
werner changed the status of T5925: libassuan: Add assuan_sock_accept function to the API from Open to Testing.
Sep 22 2022, 10:56 AM · Feature Request, libassuan
werner changed the status of T6018: libassuan: Coverity reports from Open to Testing.
Sep 22 2022, 10:55 AM · patch, libassuan, Bug Report
werner changed the status of T6170: libassuan: Drop WindowsCE support from Open to Testing.
Sep 22 2022, 10:45 AM · libassuan

Aug 31 2022

gniibe added projects to T6170: libassuan: Drop WindowsCE support: libassuan, Restricted Project.

Push the change.

Aug 31 2022, 7:31 AM · libassuan

Jul 27 2022

gniibe removed a project from T5977: Smartcard PIN stays in clear in memory: Restricted Project.

New release of libassuan is expected to make sure it's cleared off.

Jul 27 2022, 2:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jul 26 2022

werner closed T5977: Smartcard PIN stays in clear in memory as Resolved.
Jul 26 2022, 9:17 PM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jul 22 2022

SpriteOvO added a comment to T6078: File `config.guess` is a little out of date.

@gniibe Thanks!

Jul 22 2022, 6:41 PM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report
gniibe closed T6078: File `config.guess` is a little out of date as Resolved.

In the repo, for all related software, it's done.

Jul 22 2022, 3:42 AM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report
gniibe added a comment to T6078: File `config.guess` is a little out of date.

Note that versions since 2020-11-07 to 2021-07-03 have major problem with non-POSIX shell, which doesn't support $(..) construct.

Jul 22 2022, 3:40 AM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report

Jul 18 2022

gniibe triaged T6078: File `config.guess` is a little out of date as Normal priority.

Thank you.

Jul 18 2022, 10:56 AM · gpgme, pinentry, scute, ntbtls, libksba, libassuan, npth, libgcrypt, gpgrt, gnupg, Bug Report

Jun 9 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Backported to GnuPG 2.2.

Jun 9 2022, 7:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Jun 8 2022

gniibe added a project to T6018: libassuan: Coverity reports: Restricted Project.

Applied the changes.

Jun 8 2022, 2:20 PM · patch, libassuan, Bug Report

Jun 7 2022

gniibe claimed T6018: libassuan: Coverity reports.
Jun 7 2022, 1:56 PM · patch, libassuan, Bug Report
Jakuje created T6018: libassuan: Coverity reports.
Jun 7 2022, 11:25 AM · patch, libassuan, Bug Report

Jun 1 2022

gniibe claimed T5977: Smartcard PIN stays in clear in memory.
Jun 1 2022, 5:05 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

May 27 2022

sergi added a watcher for libassuan: sergi.
May 27 2022, 10:09 PM

May 25 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Pushed the solution which doesn't require new flag for libassuan.

May 25 2022, 9:42 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a project to T5977: Smartcard PIN stays in clear in memory: Restricted Project.
May 25 2022, 9:39 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a project to T5977: Smartcard PIN stays in clear in memory: backport.
May 25 2022, 7:59 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

^-- I withdraw the solution (with error value) above.

May 25 2022, 4:57 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

May 24 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Or, it would be good for client side (in this case, gpg-agent) to specify the flag in the inquiry callback, that is, it's a kind of transient flag for a single transaction.

May 24 2022, 10:45 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

Revised version with new flag ASSUAN_CLEAR_INQUIRY_DATA.

May 24 2022, 10:33 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report
gniibe added a project to T5925: libassuan: Add assuan_sock_accept function to the API: Restricted Project.
May 24 2022, 9:44 AM · Feature Request, libassuan
gniibe added a project to T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH: Restricted Project.
May 24 2022, 9:43 AM · Feature Request, libassuan

May 19 2022

gniibe added a comment to T5977: Smartcard PIN stays in clear in memory.

For this particular issue of assuan_inquire, if it's needed, the point we should fix is:

May 19 2022, 6:29 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

May 18 2022

werner added a project to T5977: Smartcard PIN stays in clear in memory: libassuan.
May 18 2022, 9:14 AM · backport, libassuan, pinentry, scd, gnupg (gpg22), Bug Report

Apr 8 2022

gniibe updated the task description for T5925: libassuan: Add assuan_sock_accept function to the API.
Apr 8 2022, 4:30 AM · Feature Request, libassuan
gniibe triaged T5925: libassuan: Add assuan_sock_accept function to the API as Wishlist priority.
Apr 8 2022, 4:24 AM · Feature Request, libassuan

Apr 5 2022

gniibe added a comment to T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH.

GPGME has its own system hooks to provide a (different) solution for portability (Windows and POSIX).

Apr 5 2022, 3:31 AM · Feature Request, libassuan

Apr 1 2022

gniibe updated the task description for T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH.
Apr 1 2022, 4:12 AM · Feature Request, libassuan
gniibe triaged T5914: libassuan: Introduce use of gpgrt_get_syscall_clamp, no use of system_hooks for nPTH as Normal priority.
Apr 1 2022, 4:11 AM · Feature Request, libassuan

Nov 10 2021

gniibe added a project to T5610: macOS 11 or newer support: Update libtool: gpgme.

Also applied to gpgme.

Nov 10 2021, 3:07 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

Since there is no problem with libgpg-error 1.43, I applied it to other libraries: npth, libassuan, libksba, and ntbtls.

Nov 10 2021, 3:04 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt

Nov 3 2021

werner closed T5610: macOS 11 or newer support: Update libtool as Resolved.
Nov 3 2021, 3:16 PM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt

Sep 27 2021

aconchillo added a comment to T5610: macOS 11 or newer support: Update libtool.

These are great news. Thank you!

Sep 27 2021, 6:35 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

Pushed the change to libgpg-error and libgcrypt (1.9 and master).
Let us see if there are any problem(s) for that, I will apply it to other libraries when it will be found no problem.

Sep 27 2021, 4:16 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe renamed T5610: macOS 11 or newer support: Update libtool from Update libtool to macOS 11 or newer support: Update libtool.
Sep 27 2021, 3:31 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

Thank you for the information.
For the record, I put the link to the email submitted:
https://lists.gnu.org/archive/html/libtool-patches/2020-06/msg00001.html

Sep 27 2021, 3:30 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt

Sep 22 2021

aconchillo added a comment to T5610: macOS 11 or newer support: Update libtool.

Oh, you are right, it's not upstream. It's actually applied to Homebrew (https://brew.sh/) libtool formula which is where I originally got libtool.m4, see:

Sep 22 2021, 9:06 PM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

I see your point. I'd like to locate/identify where the change comes from.
I think that what you refer by "new libtool.m4" is actually macOS local change (I mean, not from libtool upstream, AFAIK).
Could you please point out the source of the change?

Sep 22 2021, 2:01 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt

Sep 21 2021

aconchillo added a comment to T5610: macOS 11 or newer support: Update libtool.

That would work, however we might hit this issue with a new macOS release. Would it make more sense to update to what the new libtool.m4 is doing? Linker flags are the same, it only changes the way they detect macOS versions:

Sep 21 2021, 8:33 PM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
werner added a comment to T5610: macOS 11 or newer support: Update libtool.

That does indeed not look like something which could introduce a regression.

Sep 21 2021, 11:43 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

I misunderstood as if we need to update libtool from upstream.

Sep 21 2021, 9:16 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
werner triaged T5610: macOS 11 or newer support: Update libtool as Low priority.

macOS has low priority for us and I do not want to risk any regression.

Sep 21 2021, 8:42 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

About merging our local changes.

Sep 21 2021, 8:11 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

We have our own changes for ltmain.sh and libtool.m4.

Sep 21 2021, 7:19 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

And update from automake 1.16:

Sep 21 2021, 7:02 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

It's better to update the set of files from libtool:

build-aux/ltmain.sh
m4/libtool.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
m4/lt~obsolete.m4
Sep 21 2021, 6:58 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe added a comment to T5610: macOS 11 or newer support: Update libtool.

Our libtool was 2.4.2 + Debian patches + our local changes.
Debian patches are:
https://salsa.debian.org/mckinstry/libtool/-/blob/debian/master/debian/patches/link_all_deplibs.patch
https://salsa.debian.org/mckinstry/libtool/-/blob/debian/master/debian/patches/netbsdelf.patch

Sep 21 2021, 6:57 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt
gniibe created T5610: macOS 11 or newer support: Update libtool.
Sep 21 2021, 6:33 AM · gpgme, MacOS, ntbtls, npth, libksba, libassuan, libgcrypt, gpgrt

Aug 13 2021

werner changed the edit policy for libassuan.
Aug 13 2021, 11:08 PM

Jun 8 2021

gniibe closed T5048: Error handling in libassuan as Resolved.

Applied and pushed.

Jun 8 2021, 8:11 AM · gpgrt, libassuan

Apr 16 2021

werner added a comment to T5048: Error handling in libassuan.

(sorry, about my former comment, I only now realized that you did just that already in your original patch)

Apr 16 2021, 10:03 AM · gpgrt, libassuan
gniibe added a comment to T5048: Error handling in libassuan.

Updated:

diff --git a/configure.ac b/configure.ac
index 53a343b..f496729 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,7 @@ AC_PROG_AWK
 AC_CHECK_TOOL(AR, ar, :)
 AC_USE_SYSTEM_EXTENSIONS
Apr 16 2021, 8:50 AM · gpgrt, libassuan
werner added a comment to T5048: Error handling in libassuan.

I guess the strcasecmp (nl_langinfo (CODESET), "UTF-8") results in some overhead, so if we do that what about kicking in only if a truncation is really to happen.

Apr 16 2021, 8:26 AM · gpgrt, libassuan
gniibe added a project to T5048: Error handling in libassuan: gpgrt.
Apr 16 2021, 3:56 AM · gpgrt, libassuan
gniibe added a comment to T5048: Error handling in libassuan.

Sorry, I was wrong. It seems that GNU C library has a feature to avoid bad truncation.

Apr 16 2021, 3:55 AM · gpgrt, libassuan

Mar 22 2021

werner updated the task description for T5112: Release libassuan 2.5.4.
Mar 22 2021, 1:35 PM · Release Info, libassuan

Jan 2 2021

ticky added a comment to T4678: libassuan.pc missing include dir directive in cflags.

Hi there, this change is very useful on the Homebrew project's upcoming ARM port. The Mac package manager's base library prefix will change from the existing presumed defaults to prevent backwards-incompatibility, making pkg-config compatibility somewhat more important.

Jan 2 2021, 1:02 AM · Restricted Project, libassuan

Nov 16 2020

gniibe closed T4624: libassuan-config and libassuan.pc both put -lws2_32 before -lgpg-error, which fails during static linking as Resolved.
Nov 16 2020, 7:29 AM · Restricted Project, Windows, libassuan, Bug Report
gniibe closed T4641: Libassuan: enable the environment to set compiler and linker flags for helper tools as Resolved.
Nov 16 2020, 7:28 AM · Restricted Project, libassuan, Feature Request
gniibe closed T4678: libassuan.pc missing include dir directive in cflags as Resolved.
Nov 16 2020, 7:27 AM · Restricted Project, libassuan

Oct 23 2020

werner closed T5112: Release libassuan 2.5.4 as Resolved.
Oct 23 2020, 7:17 PM · Release Info, libassuan
werner created T5112: Release libassuan 2.5.4.
Oct 23 2020, 6:52 PM · Release Info, libassuan

Sep 3 2020

werner added a comment to T5048: Error handling in libassuan.

To implement this it would be best to have an gpg_strerror variant which does not call dgettext.

Sep 3 2020, 10:01 AM · gpgrt, libassuan
werner added a comment to T5048: Error handling in libassuan.

re 1: Correct utf-8 truncation would be quite some work. In this case the message is in the Assuan interface is a debugging aid. Translation is not necessary so we can try to disable it.

Sep 3 2020, 9:55 AM · gpgrt, libassuan
gniibe updated the task description for T5048: Error handling in libassuan.
Sep 3 2020, 4:46 AM · gpgrt, libassuan
gniibe created T5048: Error handling in libassuan.
Sep 3 2020, 4:45 AM · gpgrt, libassuan

Aug 17 2020

werner closed T5025: error: Cannot find a type to use in place of socklen_t as Resolved.

No, c99 was never required. Meanwhile we use a few c99 features but those are supported without any compiler option.

Aug 17 2020, 9:27 AM · Solaris, toolchain, libassuan

Aug 14 2020

JW added a comment to T5025: error: Cannot find a type to use in place of socklen_t.

-std=c99 is probably the reason that the tests fail.

Aug 14 2020, 9:42 PM · Solaris, toolchain, libassuan
werner added projects to T5025: error: Cannot find a type to use in place of socklen_t: toolchain, Solaris.

Please try with out supplied CFLAGS or change them from

Aug 14 2020, 9:40 AM · Solaris, toolchain, libassuan
JW created T5025: error: Cannot find a type to use in place of socklen_t in the S1 Public space.
Aug 14 2020, 9:11 AM · Solaris, toolchain, libassuan

Jul 29 2020

werner added a comment to T5005: Unified single header file if it offers same API.

We have had this in the past but it led to subtle build and, worse, runtime problems. Thus the decision to provide architecture dependent files and have configure complain for wrong files. Right, you sometimes get false warnings for non-matching cpu-vendor-os strings but I consider this less severe than the old problem.

Jul 29 2020, 1:33 PM · libassuan, gpgrt
gniibe triaged T5005: Unified single header file if it offers same API as Wishlist priority.
Jul 29 2020, 2:22 AM · libassuan, gpgrt
gniibe created T5005: Unified single header file if it offers same API.
Jul 29 2020, 2:22 AM · libassuan, gpgrt

Jul 16 2020

gniibe added a comment to T4624: libassuan-config and libassuan.pc both put -lws2_32 before -lgpg-error, which fails during static linking.

This fix reveals the problem of: T4994: Windows: assuan_sock_init or WSAStartup by main/_init_common_subsystem

Jul 16 2020, 3:11 AM · Restricted Project, Windows, libassuan, Bug Report

Mar 12 2020

gniibe added a project to T4624: libassuan-config and libassuan.pc both put -lws2_32 before -lgpg-error, which fails during static linking: Restricted Project.
Mar 12 2020, 6:46 AM · Restricted Project, Windows, libassuan, Bug Report
gniibe changed the status of T4641: Libassuan: enable the environment to set compiler and linker flags for helper tools from Open to Testing.
Mar 12 2020, 6:32 AM · Restricted Project, libassuan, Feature Request
gniibe added a project to T4678: libassuan.pc missing include dir directive in cflags: Restricted Project.
Mar 12 2020, 6:30 AM · Restricted Project, libassuan

Feb 18 2020

gniibe changed the status of T4624: libassuan-config and libassuan.pc both put -lws2_32 before -lgpg-error, which fails during static linking from Open to Testing.

With the fix of T4623, this bug is now fixed.

Feb 18 2020, 8:17 AM · Restricted Project, Windows, libassuan, Bug Report

Dec 6 2019

gniibe changed the status of T4678: libassuan.pc missing include dir directive in cflags from Open to Testing.
Dec 6 2019, 5:31 AM · Restricted Project, libassuan

Aug 20 2019

gniibe added a comment to T4678: libassuan.pc missing include dir directive in cflags.

Well, gpg-error is special. For other libraries, adding -I and -L is enough and good.
Fixed in master.

Aug 20 2019, 3:55 AM · Restricted Project, libassuan
gniibe triaged T4678: libassuan.pc missing include dir directive in cflags as Normal priority.

Thank you. I only tested a configuration where installation of libassuan has same prefix as libgpg-error. That's the reason why this bug exists.

Aug 20 2019, 3:38 AM · Restricted Project, libassuan

Aug 19 2019

werner assigned T4678: libassuan.pc missing include dir directive in cflags to gniibe.
Aug 19 2019, 5:03 PM · Restricted Project, libassuan
t8m created T4678: libassuan.pc missing include dir directive in cflags in the S1 Public space.
Aug 19 2019, 10:38 AM · Restricted Project, libassuan

Jul 18 2019

gniibe triaged T4641: Libassuan: enable the environment to set compiler and linker flags for helper tools as Normal priority.
Jul 18 2019, 7:41 AM · Restricted Project, libassuan, Feature Request
gniibe claimed T4641: Libassuan: enable the environment to set compiler and linker flags for helper tools.

Thanks.
Merged (with line break in the Makefile.am and formatting of commit message.

Jul 18 2019, 7:39 AM · Restricted Project, libassuan, Feature Request