Front-end for GnuPG

Steffen Zahn zahn at berlin.snafu.de
Sun Jul 9 20:32:13 CEST 2000


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> Jordi Soria Comas <jordi.soria at wanadoo.es> writes:

 > I'm doing a front-end for GnuPG in GTK and I have big problems to
 > let GPG know the information that it needs to run the commands that
 > can't be done in batch mode.I tried to redirect stdin but it didn't
 > work. Then I looked at source code and I saw that GPG reads input
 > in this way: while( read(fileno(ttyfp), cbuf, 1) == 1 && *cbuf !=
 > '\n'){...}  where: ttyfp = batchmode? stderr : fopen("/dev/tty",
 > "r+");

 > I have tried to open "/dev/tty" and write data, but what I write to
 > that file is shown in the terminal, instead of be read by GPG.

You can have a look at the sources of Seahorse, another gtk/gnome
front end for gpg to see how interfacing with gpg can be done.
If you like you can also join that project.

For more information regarding Seahorse (sources, mailing lists etc)
see http://seahorse.sourceforge.net/

Best regards
  Steffen

- -- 
home email:  user at domain where domain=berlin.snafu.de, user=zahn
Use of my address for unsolicited commercial advertising is forbidden.
      2^6972593 - 1     |     "Where do you want to crash today?"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Seahorse v0.4.9 http://seahorse.sourceforge.net

iD8DBQE5aLcE7JseW3OYIJARAjn9AKC20eyyPG0nV+smVVhk9vwDFO9HiACgoRXo
QkTFxCrA3v7MYjEwokdUXYY=
=Yy1a
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list