Hi, running the example t-sign.c (gpgme-1.0.3) hangs on function gpgme_op_sign() when the passphrase_cb is set. If I remove the gpgme_set_passphrase_cb(..) example ends with no signatures made.
The passphrase callback function is never called.. - that is strange. I'm running SunOS 5.8. I also tried this: gpgme_error_t pass_cb (void *opaque, const char *uid_hint, const char *passphrase_info, int last_was_bad, int fd) { write (fd, "asdf\n", 5); return 0; } code: gpgme_set_passphrase_cb (ctx, pass_cb, NULL); err = gpgme_get_key (ctx, "<key FPR>", &signers_key, 1); fail_if_err (err); err = gpgme_signers_add(ctx, signers_key); fail_if_err (err); printf("before\n"); err = gpgme_op_sign(ctx, in, out_signed, GPGME_SIG_MODE_CLEAR); printf("after\n"); // this never hapens.. But it hangs, too. Do you have any suggestions? Thanks a lot, Milan Lehocky _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users