Again: gpgsm and gpgme?

Albrecht Dreß albrecht.dress at arcor.de
Sat Jan 10 19:51:16 CET 2004


Am 06.01.04 14:31 schrieb(en) Werner Koch:
> Both files show that gpgsm's operation was sucessfull.  You need to
> debug gpgme and your application.  Did you initialized gpgme
> correctly?

I meanwhile ran the application in gdb/ddd, and I think I could identify  
the problem... The "invalid engine" error comes from gpgme 0.4.3, file  
gpgme/verify.c, routine parse_valid_sig() (line 237 ff.).

The routine is called with *args ==  
"943644A39F711188AFF312C413B6C332B6475EB0 2004-01-06 20040106T203129  
20041207T095636". In line 262, the call to strtol sets sig->timestamp to  
20040106 (the first part of the third space-separated element above) and  
tail points to "T20312...", which triggers returning with the invalid  
engine error (*tail != ' ') in 263/264.

So is this a real problem in gpgsm/gpgme interaction, or did I introduce  
some stupid error in my app? I have a call to gpgme_set_protocol(ctx,  
GPGME_PROTOCOL_CMS) in it, and I thought this would be sufficient.

Thanks,

	Albrecht.



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
       Phone (+49) 228 6199571  -  mailto:albrecht.dress at arcor.de
_________________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20040110/e71413e8/attachment.bin


More information about the Gnupg-devel mailing list