Skip Menu |
 

This queue is for tickets about the Crypt-GpgME CPAN distribution.

Report information
The Basics
Id: 33188
Status: open
Priority: 0/
Queue: Crypt-GpgME

People
Owner: Nobody in particular
Requestors: jnimety [...] perimeterusa.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: genkey error
Date: Tue, 12 Feb 2008 12:43:20 -0500
To: bug-Crypt-GpgME [...] rt.cpan.org
From: Joel Nimety <jnimety [...] perimeterusa.com>
Download (untitled) / with headers
text/plain 2.1k
I am receiving the following error when trying to generate a new key pair using the OpenPGP engine. GPGME: Not implemented I believe this is because your module should be passing Null for the Public and Secret arguments to gpgme_op_genkey per the gpgme documentation: "GnuPG does not support PUBLIC and SECRET, they should be `NULL'. GnuPG will generate a key pair and add it to the standard key ring. The fingerprint of the generated key is available with `gpgme_op_genkey_result'." I am not familiar with Perl XS otherwise I would supply a patch to fix this. Thank you for a great and useful module. Below find my test script: #!/usr/bin/perl; use strict; use warnings; use Crypt::GpgME; use Data::Dumper; sub _new_init_gpg { my $ctx = Crypt::GpgME->new; my $file_name = '/usr/bin/gpg'; my $home_dir = '/tmp/gpg_test'; $ctx->set_engine_info('OpenPGP', $file_name, $home_dir); return $ctx; } my $parms = ' <GnupgKeyParms format="internal"> Key-Type: DSA Key-Length: 1024 Subkey-Type: ELG-E Subkey-Length: 2048 Name-Real: Joe Tester Name-Comment: with stupid passphrase Name-Email: joe@foo.bar Expire-Date: 0 Passphrase: abc </GnupgKeyParms>'; my $ctx = _new_init_gpg; my ($result, $pubkey_fh, $seckey_fh); ($result, $pubkey_fh, $seckey_fh) = $ctx->genkey($parms); print "$result"; -- Joel Nimety Perimeter eSecurity Product Architect, Email Defense 203.541.3416 jnimety@perimeterusa.com http://www.perimeterusa.com -- The sender of this email subscribes to Perimeter eSecurity's email anti-virus service. This email has been scanned for malicious code and is believed to be virus free. For more information on email security please visit: http://www.perimeterusa.com/email-defense-content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. Thanks
Subject: Re: [rt.cpan.org #33188] genkey error
Date: Wed, 13 Feb 2008 10:22:26 +0100
To: Joel Nimety via RT <bug-Crypt-GpgME [...] rt.cpan.org>
From: Florian Ragwitz <rafl [...] debian.org>
On Tue, Feb 12, 2008 at 12:50:51PM -0500, Joel Nimety via RT wrote: Show quoted text
> I am receiving the following error when trying to generate a new key > pair using the OpenPGP engine. > > GPGME: Not implemented > > I believe this is because your module should be passing Null for the > Public and Secret arguments to gpgme_op_genkey per the gpgme documentation: > > "GnuPG does not support PUBLIC and SECRET, they should be `NULL'. > GnuPG will generate a key pair and add it to the standard key > ring. The fingerprint of the generated key is available with > `gpgme_op_genkey_result'." > > I am not familiar with Perl XS otherwise I would supply a patch to fix > this.
I fixed the issue and added a testcase. The code is available via git at git://git.perldition.org/Crypt-GpgME.git Do you want to give it a try before I upload a new version to CPAN? Show quoted text
> Thank you for a great and useful module.
Thank you for the best bugreport I got in years! -Flo -- BOFH excuse #292: We ran out of dial tone and we're and waiting for the phone company to deliver another bottle.
Download signature.asc
application/pgp-signature 189b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #33188] genkey error
Date: Wed, 13 Feb 2008 10:30:54 -0500
To: bug-Crypt-GpgME [...] rt.cpan.org
From: Joel Nimety <jnimety [...] perimeterusa.com>
Download (untitled) / with headers
text/plain 1.3k
Florian Ragwitz via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=33188 > > > On Tue, Feb 12, 2008 at 12:50:51PM -0500, Joel Nimety via RT wrote: > > I fixed the issue and added a testcase. The code is available via git at > > git://git.perldition.org/Crypt-GpgME.git > > Do you want to give it a try before I upload a new version to CPAN? > > > Thank you for the best bugreport I got in years! > > > -Flo >
It works, thanks for the quick response. -- Joel Nimety Perimeter eSecurity Product Architect, Email Defense 203.541.3416 jnimety@perimeterusa.com http://www.perimeterusa.com -- The sender of this email subscribes to Perimeter eSecurity's email anti-virus service. This email has been scanned for malicious code and is believed to be virus free. For more information on email security please visit: http://www.perimeterusa.com/email-defense-content.html This communication is confidential, intended only for the named recipient(s) above and may contain trade secrets or other information that is exempt from disclosure under applicable law. Any use, dissemination, distribution or copying of this communication by anyone other than the named recipient(s) is strictly prohibited. If you have received this communication in error, please delete the email and immediately notify our Command Center at 203-541-3444. Thanks


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.