gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev] Re: Client OpenPGP verification fails (solved)


From: Simon Josefsson
Subject: [gnutls-dev] Re: Client OpenPGP verification fails (solved)
Date: Sun, 06 Aug 2006 15:24:04 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Mario Lenz <address@hidden> writes:

> Hi!
>
> It's working now. The problems were partly my fault... Sorry for
> spamming your mailing list :-/

Hi!  I'm back from vacation today, and slowly trying to catch up on
this thread...

Please remind me (in private) if there is some e-mail from you that
contains a patch or something concrete that you'd like me to install.

> Nevertheless, the official version doesn't work because gnutls expects
> cdk_kbnode_write_to_mem to return an error code when called with NULL as
> second argument.
>
> You should change
>
> if( !buf ) {
>     *r_nbytes = len; /* only return the length of the buffer */
>     cdk_stream_close( s );
>     return 0;
> }
>
> to
>
> if( !buf ) {
>     *r_nbytes = len; /* only return the length of the buffer */
>     cdk_stream_close( s );
>     return CDK_Too_Short;
> }
>
> in cdk_kbnode_write_to_mem() (src/kbnode.c).

I have installed this, and will release opencdk 0.5.9 shortly.

> Afaik there's no function to import an OpenPGP key which is secured
> by a pass phrase. I would like to implement one if you don't mind.
> Please tell me if that's ok.

That seems useful, please go ahead!  Maybe the gpg-agent should be
supported, but that's another story.

/Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]