From: Karl-Heinz Zimmer Date: Sat, 24 Nov 2001 10:51:55 +0000 (+0000) Subject: signing now returns only the SIGNATURE - not the original text - since building of... X-Git-Tag: gpgme-1.2.0@1385~1240 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9395aecc38d5f78c70718c7b87f21de021afcdc7;p=gpgme.git signing now returns only the SIGNATURE - not the original text - since building of the S/MIME object is done in the calling program (the MUA...) --- diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index d6db832..b2e61bb 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/gpgmeplug/gpgmeplug.c @@ -751,7 +751,7 @@ bool signMessage( const char* cleartext, gpgme_set_textmode (ctx, 1); gpgme_data_new_from_mem (&data, cleartext, - strlen( cleartext ), 1 ); + 1+strlen( cleartext ), 1 ); gpgme_data_new ( &sig ); gpgme_op_sign (ctx, data, sig, GPGME_SIG_MODE_DETACH );