Re[2]: Keypair ????
Jacob Perkins
jap1@users.sourceforge.net
Tue Mar 18 17:39:01 2003
Assuming you already have a public GpgmeKey, you can start another
listing operation with gpgme_op_keylist_start (ctx,
gpgme_key_get_string_attr (key, GPGME_ATTR_FPR, NULL, 0), 1). This will
list any secret keys with the same fingerprint as the public key. So,
if gpgme_op_keylist_next gives No_Error, then you have both public and
secret keys.
Is there a better way to do this?
On Mon, 2003-03-17 at 14:04, Vit Sykacek wrote:
> I ment some function in gpgme, or another possibility than =20
> call something from command line. =20
> =20
> Vit =20
> =20
> -----Original Message----- =20
> From: Roland Wolters <rolandwolters@web.de> =20
> To: "Vit Sykacek" <direcon@mail.ru> =20
> Date: Sun, 16 Mar 2003 23:26:54 +0100 =20
> Subject: Re: Keypair ???? =20
> =20
> > -----BEGIN PGP SIGNED MESSAGE----- =20
> > Hash: SHA1 =20
> > =20
> > Look at gpg --help =20
> > =20
> > liquidat@hesinde:~> gpg --help |grep secret =20
> > --list-secret-keys Liste der geheimen Schl=FCssel =20
> > --delete-secret-keys Schl=FCssel aus dem geh. Schl=FCsselbun=
d =20
> entfernen =20
> > --secret-keyring Als geheimen Schl=FCsselbund mitbenutze=
n =20
> > =20
> > There you can look up the secret Keys. =20
> > =20
> > And if you have a second look at the 'help' comand in the gpg --edit-ke=
y =20
> area. =20
> > There you will find the 'toggle' command. If there is a secret key, tog=
gle =20
> > will give you an output about this. =20
> > =20
> > Is it so hard to type 'help'? =20
> > =20
> > Roland =20
> > -----BEGIN PGP SIGNATURE----- =20
> > Version: GnuPG v1.2.1 (GNU/Linux) =20
> > =20
> > iD4DBQE+dPounsVHlKAJG/IRAg+2AJ4zotXRWtBqv7RUxjz7VU09JbL98wCYyRNy =20
> > ZHXAPsTMg4QBRcToHCrNaw=3D=3D =20
> > =3DgoFj =20
> > -----END PGP SIGNATURE----- =20
> > =20
> > =20
>=20
> _______________________________________________
> Gnupg-devel mailing list
> Gnupg-devel@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-devel
--=20
Jacob Perkins <jap1@users.sourceforge.net>
seahorse