GPGME: deletion of a key.

Martin Galpin martin@nemohackers.org
Tue Jan 14 13:27:04 2003


I just read that the deletion of keys doesn't work in GPGME. Has this been 
fixed yet?


On Friday 03 January 2003 7:50 pm, Martin Galpin wrote:
> I have consulted the documentation for the deletion of a key from the
> keyring, but the code doesn't seem to have an effect:
>
> <code>
> 	  GpgmeCtx ctx;
> 	  GpgmeKey key;
>      GpgmeError err = gpgme_new (&ctx);
>
>      if (!err)
>        {
>          err = gpgme_op_keylist_start (ctx, "Martin", 0);
>          while (!err && (err = gpgme_op_keylist_next (ctx, &key)) !=
> GPGME_EOF)
>            {
>
> 					 gpgme_opt_delete(ctx, key, 1);
>              gpgme_key_release (key);
>            }
>          gpgme_release (ctx);
>        }
> </code>
>
> any ideas?
>
> Thanks alot...
> Martin
>
> _______________________________________________
> Gpa-dev mailing list
> Gpa-dev@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gpa-dev

-- 
There is no substitute for good manners, except, perhaps, fast
reflexes.