Detached signatures in GpgMe

Werner Koch wk at
Sun Sep 22 15:29:01 CEST 2002

On Sun, 22 Sep 2002 14:02:39 +0200 (CEST), Egil Moeller said:

>   if ((gpgmeError = gpgme_op_sign(ctxObj, plainObj, sigObj, GPGME_SIG_MODE_DETACH)) != GPGME_No_Error)
>    frideThrowGpgmeError("fride-gpgme-sign", gpgmeError);

>   fprintf(stderr, "Sign info: %s\n", gpgme_get_op_info(ctxObj, 0));

gpgme_data_rewind (plainObj);
gpgme_data_rewind (sigObj);

>   if ((gpgmeError = gpgme_op_verify(ctxObj, sigObj, plainObj, &statusObj)) != GPGME_No_Error)
>    frideThrowGpgmeError("fride-gpgme-verify", gpgmeError);

We can't do an rewind implict bbecuase the data objects may refer to
an unseeable stream.



More information about the Gnupg-devel mailing list