/[winpt]/trunk/MyGPGME/keylist.c
ViewVC logotype

Diff of /trunk/MyGPGME/keylist.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 21 by twoaday, Wed Jul 27 11:17:44 2005 UTC
# Line 1  Line 1 
1  /* keylist.c -  key listing  /* keylist.c -  key listing
2   *      Copyright (C) 2000, 2001 Werner Koch (dd9jn), g10 Code GmbH   *      Copyright (C) 2000, 2001 Werner Koch (dd9jn), g10 Code GmbH
3   *      Copyright (C) 2002-2004 Timo Schulz   *      Copyright (C) 2002-2005 Timo Schulz
4   *   *
5   * This file is part of MyGPGME.   * This file is part of MyGPGME.
6   *   *
# Line 658  gpgme_op_keylist_next( gpgme_ctx_t ctx, Line 658  gpgme_op_keylist_next( gpgme_ctx_t ctx,
658      ctx->key_queue = q->next;      ctx->key_queue = q->next;
659            
660      *r_key = q->key;      *r_key = q->key;
661      safe_free( q );      safe_free (q);
662      return 0;      return 0;
663  }  }
664    
665    
666    gpgme_error_t
667    gpgme_op_keylist_getkey (int is_sec, const char *pattern, gpgme_key_t *r_key)
668    {
669        gpgme_ctx_t listctx;
670        gpgme_error_t err;
671    
672        err = gpgme_new (&listctx);
673        if (err)
674            return err;
675        err = gpgme_op_keylist_start (listctx, pattern, is_sec);
676        if (!err)
677            err = gpgme_op_keylist_next (listctx, r_key);
678        gpgme_release (listctx);
679        return err;
680    }

Legend:
Removed from v.2  
changed lines
  Added in v.21

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26