[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnutls-dev] Client OpenPGP verification fails (solved)
From: |
Mario Lenz |
Subject: |
[gnutls-dev] Client OpenPGP verification fails (solved) |
Date: |
Sun, 06 Aug 2006 11:53:44 +0200 |
Hi!
It's working now. The problems were partly my fault... Sorry for
spamming your mailing list :-/
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).
greez
Mario
PS
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.
- [gnutls-dev] Client OpenPGP verification fails (solved),
Mario Lenz <=