[gnutls-dev] Re: Client OpenPGP verification fails (solved)
Simon Josefsson
jas at extundo.com
Sun Aug 6 15:24:04 CEST 2006
Mario Lenz <mario.lenz at gmx.net> 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
More information about the Gnutls-devel
mailing list