Re: Errors while creating an g13 encrypted container.

2018-04-13 Thread Todd Zullinger
Dirk Gottschalk via Gnupg-users wrote:
> Am Freitag, den 13.04.2018, 11:40 +0200 schrieb Werner Koch:
>> On Fri, 13 Apr 2018 03:49, gnupg-users@gnupg.org said:
>> 
>>> There is neither a command or package named userv, nor a script
>>> called
>>> 'gnupg-g13-syshelp' in the repositories. The binary g13-syshelp is
>>> available.
> 
>>   apt-get install userv
> 
> In my case it is dnf, but this tool is not available at all in the
> repos.

I don't see userv available for Arch, Gentoo, openSUSE, or
Slackware either.  It's a very old tool (not that this makes
it bad in any way) which hasn't seen updates in a decade or
so, it appears.

Has userv ever been widely packaged outside of Debian?

-- 
Todd
~~
There are no differences but differences of degree between different
degrees of difference and no difference.
-- William James, under nitrous oxide; 1882



signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: packet syntax

2018-04-13 Thread FuzzyDrawrings via Gnupg-users

Edgar Pettijohn wrote:

>  thought I read somewhere that gpg creates version 4 packets.

True. But the version 4 public-key packet specification only tells you what 
information will be contained in the packet, not the format used for the packet 
header.

- fuzzy

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: dirmngr timeout

2018-04-13 Thread Werner Koch
On Thu, 12 Apr 2018 15:45, lp...@kde.org said:

[Full quote trimmed]
> It looks like if I run dirmngr manually, as follows, with honor-http-proxy,
> gpg works:
>
> dirmngr --daemon

It will also work if dirnmnr is automatically started by gpg or via
gpgconf --launch dirmngr.

> But when it is run as dirmngr --supervised, gpg does not seem to work until
> the http-proxy is specified in the config explicitly.

It seems that systemd has a different view on the envvars and thus your
somewhere set http_proxy=foo:port is not inherited by dirmngr.
According to IRC there are ways to set envvars for specific systemd
actions.  If can find them out it would be nice if you can document that
in a reply.


Shalom-Salam,

   Werner


-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgpV7iVLmJ2kP.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: dirmngr timeout

2018-04-13 Thread Laszlo Papp
On Fri, Apr 13, 2018 at 10:46 AM, Werner Koch  wrote:

> On Thu, 12 Apr 2018 15:45, lp...@kde.org said:
>
> [Full quote trimmed]
> > It looks like if I run dirmngr manually, as follows, with
> honor-http-proxy,
> > gpg works:
> >
> > dirmngr --daemon
>
> It will also work if dirnmnr is automatically started by gpg or via
> gpgconf --launch dirmngr.
>
> > But when it is run as dirmngr --supervised, gpg does not seem to work
> until
> > the http-proxy is specified in the config explicitly.
>
> It seems that systemd has a different view on the envvars and thus your
> somewhere set http_proxy=foo:port is not inherited by dirmngr.
> According to IRC there are ways to set envvars for specific systemd
> actions.  If can find them out it would be nice if you can document that
> in a reply.
>

Yes, I meant to reply yesterday after solving this.

systemd --user import-environment http_proxy

is what I used.


>
>
> Shalom-Salam,
>
>Werner
>
>
> --
> #  Please read:  Daniel Ellsberg - The Doomsday Machine  #
> Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
>
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpgme_op_verify regression with gnupg 2.2.6?

2018-04-13 Thread Werner Koch
On Thu, 12 Apr 2018 15:26, w...@gnupg.org said:

> Please stay tuned for a GPGME fix.  I hope that you can test it too.

I pushed a fix as weel as a new test to the master branch.  I may also
release a 1.10.1 to fix this.  The attached pacth should apply to 1.10.0
and maybe also to 1.9.


Salam-Shalom,

   Werner

-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
From 9aa33a99701e189d7fc0ff7322fc9e21e35b73fa Mon Sep 17 00:00:00 2001
From: Werner Koch 
Date: Thu, 12 Apr 2018 20:36:30 +0200
Subject: [PATCH] core: Tweak STATUS_FAILURE handling.

* src/op-support.c (_gpgme_parse_failure): Ignore failures with
location "gpg-exit".
--

Signed-off-by: Werner Koch 
---
 src/op-support.c | 10 +-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/op-support.c b/src/op-support.c
index 817c569..8269ce2 100644
--- a/src/op-support.c
+++ b/src/op-support.c
@@ -398,7 +398,13 @@ _gpgme_parse_plaintext (char *args, char **filenamep)
 
 
 /* Parse a FAILURE status line and return the error code.  ARGS is
-   modified to contain the location part.  */
+ * modified to contain the location part.  Note that for now we ignore
+ * failure codes with a location of gpg-exit; they are too trouble
+ * some.  Instead we should eventually record that error in the
+ * context and provide a function to return a fuller error
+ * description; this could then also show the location of the error
+ * (e.g. "option- parser") to make it easier for the user to detect
+ * the actual error. */
 gpgme_error_t
 _gpgme_parse_failure (char *args)
 {
@@ -416,6 +422,8 @@ _gpgme_parse_failure (char *args)
 *where = '\0';
 
   where = args;
+  if (!strcmp (where, "gpg-exit"))
+return 0;
 
   return atoi (which);
 }
-- 
2.8.1



pgpeKYvu_tuKD.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Errors while creating an g13 encrypted container.

2018-04-13 Thread Werner Koch
On Fri, 13 Apr 2018 03:49, gnupg-users@gnupg.org said:

> There is neither a command or package named userv, nor a script called
> 'gnupg-g13-syshelp' in the repositories. The binary g13-syshelp is
> available.

  apt-get install userv

Frankly, I wonder why that immense useful tool is not part of the base
distribution.


Salam-Shalom,

   Werner

-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgp9NKg7hKdH_.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: dirmngr timeout

2018-04-13 Thread Laszlo Papp
Unfortunately, I am seeing the following issue in docker, still. What would
be the solution to this? I am using 2.2.6.

Step 12/46 : RUN dirmngr < /dev/null && echo "honor_http_proxy" >
/home/nic/.gnupg/dirmngr.conf && touch ~/.gnupg/dirmngr_ldapservers.conf &&
ls -ld ~/.gnupg &&  gpg --keyserver hkp://p80.pool.sks-keyservers.net:80
--recv-key 702353E0F7E48EDB; cd ~ && git clone
https://aur.archlinux.org/lib32-ncurses5-compat-libs.git
lib32-ncurses5-compat-libs && cd lib32-ncurses5-compat-libs && makepkg -f
--noconfirm
 ---> Running in 698013ee8936
dirmngr[8]: error opening '/home/nic/.gnupg/dirmngr_ldapservers.conf': No
such file or directory
dirmngr[8.0]: permanently loaded certificates: 136
dirmngr[8.0]: runtime cached certificates: 0
dirmngr[8.0]:trusted certificates: 136 (135,0,0,1)
dirmngr[8.0]: failed to open cache dir file
'/home/nic/.gnupg/crls.d/DIR.txt': No such file or directory
dirmngr[8.0]: creating directory '/home/nic/.gnupg'
dirmngr[8.0]: creating directory '/home/nic/.gnupg/crls.d'
dirmngr[8.0]: new cache dir file '/home/nic/.gnupg/crls.d/DIR.txt' created
# Home: /home/nic/.gnupg
# Config: [none]
OK Dirmngr 2.2.6 at your service
drwx-- 3 nic admin 4096 Apr 13 13:45 /home/nic/.gnupg
gpg: keybox '/home/nic/.gnupg/pubring.kbx' created
gpg: connecting dirmngr at '/home/nic/.gnupg/S.dirmngr' failed: IPC connect
call failed
gpg: keyserver receive failed: No dirmngr
Cloning into 'lib32-ncurses5-compat-libs'...
==> Making package: lib32-ncurses5-compat-libs 6.1-1 (Fri Apr 13 13:46:14
UTC 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading ncurses-6.1.tar.gz...
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
100 3286k  100 3286k0 0   221k  0  0:00:14  0:00:14 --:--:--
765k
  -> Downloading ncurses-6.1.tar.gz.sig...
  % Total% Received % Xferd  Average Speed   TimeTime Time
Current
 Dload  Upload   Total   SpentLeft
Speed
10072  100720 0  5  0  0:00:14  0:00:12  0:00:02
21
==> Validating source files with md5sums...
ncurses-6.1.tar.gz ... Passed
ncurses-6.1.tar.gz.sig ... Skipped
==> Verifying source file signatures with gpg...
ncurses-6.1.tar.gz ... FAILED (unknown public key 702353E0F7E48EDB)
==> ERROR: One or more PGP signatures could not be verified!
The command '/bin/sh -c dirmngr < /dev/null && echo "honor_http_proxy" >
/home/nic/.gnupg/dirmngr.conf && touch ~/.gnupg/dirmngr_ldapservers.conf &&
ls -ld ~/.gnupg &&  gpg --keyserver hkp://p80.pool.sks-keyservers.net:80
--recv-key 702353E0F7E48EDB; cd ~ && git clone
https://aur.archlinux.org/lib32-ncurses5-compat-libs.git
lib32-ncurses5-compat-libs && cd lib32-ncurses5-compat-libs && makepkg -f
--noconfirm' returned a non-zero code: 1
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Errors while creating an g13 encrypted container.

2018-04-13 Thread Dirk Gottschalk via Gnupg-users
Am Freitag, den 13.04.2018, 11:40 +0200 schrieb Werner Koch:
> On Fri, 13 Apr 2018 03:49, gnupg-users@gnupg.org said:
> 
> > There is neither a command or package named userv, nor a script
> > called
> > 'gnupg-g13-syshelp' in the repositories. The binary g13-syshelp is
> > available.

>   apt-get install userv

In my case it is dnf, but this tool is not available at all in the
repos.


> Frankly, I wonder why that immense useful tool is not part of the
> base
> distribution.

I think it should be available and a dependency for gnupg2 in this
case. Okay, then I'll search for userv and built it myself. And I'll
file a bug report against the gnupg2 rpm package for the not working
feature.

Thanks for your Help.

Regards,
Dirk


-- 
Dirk Gottschalk
Paulusstrasse 6-8
52064 Aachen
Tel.: +49 1573 1152350

signature.asc
Description: This is a digitally signed message part
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users