/[winpt]/trunk/MyGPGME/gpgme.h
ViewVC logotype

Diff of /trunk/MyGPGME/gpgme.h

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

revision 11 by twoaday, Thu Apr 14 12:55:57 2005 UTC revision 22 by twoaday, Wed Aug 10 11:33:35 2005 UTC
# Line 40  extern "C" { Line 40  extern "C" {
40   * let autoconf (using the AM_PATH_GPGME macro) check that this   * let autoconf (using the AM_PATH_GPGME macro) check that this
41   * header matches the installed library.   * header matches the installed library.
42   * Warning: Do not edit the next line.  configure will do that for you! */   * Warning: Do not edit the next line.  configure will do that for you! */
43  #define GPGME_VERSION "20050306ts"  #define GPGME_VERSION "20050806ts"
44    
45  struct gpgme_context_s;  struct gpgme_context_s;
46  typedef struct gpgme_context_s *gpgme_ctx_t;  typedef struct gpgme_context_s *gpgme_ctx_t;
# Line 193  typedef enum { Line 193  typedef enum {
193      GPGME_ATTR_CAN_AUTH     = 31,      GPGME_ATTR_CAN_AUTH     = 31,
194      GPGME_ATTR_DIVERT_CARD  = 32,      GPGME_ATTR_DIVERT_CARD  = 32,
195      GPGME_ATTR_KEYSERVER    = 33,      GPGME_ATTR_KEYSERVER    = 33,
196        GPGME_ATTR_VERSION      = 34,
197    
198      GPGME_ATTR_KEYDAT_NP    = 50,      GPGME_ATTR_KEYDAT_NP    = 50,
199      GPGME_ATTR_KEYDAT_BITS  = 51,      GPGME_ATTR_KEYDAT_BITS  = 51,
# Line 387  typedef enum { Line 388  typedef enum {
388    
389    
390  typedef enum {  typedef enum {
391      GPGME_CLIP_MESSAGE      =  1,      GPGME_PGP_MESSAGE      =  1,
392      GPGME_CLIP_CLEARSIG     =  2,      GPGME_PGP_CLEARSIG     =  2,
393      GPGME_CLIP_SIG          =  4,      GPGME_PGP_SIG          =  4,
394      GPGME_CLIP_PUBKEY       =  8,      GPGME_PGP_PUBKEY       =  8,
395      GPGME_CLIP_SECKEY       = 16,      GPGME_PGP_SECKEY       = 16,
396      GPGME_CLIP_DASH_ESCAPED = 32      GPGME_PGP_DASH_ESCAPED = 32 /* actually not a type, just a flag */
397  } gpgme_cliptype_t;  } gpgme_pgptype_t;
398    
399  typedef enum {  typedef enum {
400      GPGME_CIPHER_3DES     = 1,      GPGME_CIPHER_3DES     = 1,
# Line 529  gpgme_error_t     gpgme_data_write( gpgm Line 530  gpgme_error_t     gpgme_data_write( gpgm
530  } while( 0 )  } while( 0 )
531    
532  /* Key and trust functions */  /* Key and trust functions */
533  int           gpgme_key_append (gpgme_key_t dst, gpgme_key_t src, int idx);  gpgme_error_t gpgme_key_append (gpgme_key_t dst, gpgme_key_t src, int idx);
534  void          gpgme_key_ref( gpgme_key_t key );  void          gpgme_key_ref( gpgme_key_t key );
535  void          gpgme_key_unref( gpgme_key_t key );  void          gpgme_key_unref( gpgme_key_t key );
536  void          gpgme_key_release( gpgme_key_t key );  void          gpgme_key_release( gpgme_key_t key );
# Line 539  unsigned long gpgme_key_get_ulong_attr( Line 540  unsigned long gpgme_key_get_ulong_attr(
540                                           void **reserved, int idx );                                           void **reserved, int idx );
541    
542  /* Key management functions */  /* Key management functions */
543  gpgme_error_t gpgme_op_keylist_start( gpgme_ctx_t ctx,  gpgme_error_t gpgme_op_keylist_start (gpgme_ctx_t ctx,
544                                        const char *pattern, int secret_only );                                        const char *pattern, int secret_only);
545  gpgme_error_t gpgme_op_keylist_next( gpgme_ctx_t ctx, gpgme_key_t * r_key );  gpgme_error_t gpgme_op_keylist_next (gpgme_ctx_t ctx, gpgme_key_t * r_key);
546    gpgme_error_t gpgme_op_keylist_getkey (int is_sec, const char *pattern,
547                                           gpgme_key_t *r_key);
548    
549  /* Convenience functions for normal usage */  /* Convenience functions for normal usage */
550  gpgme_error_t gpgme_op_encrypt ( gpgme_ctx_t c, gpgme_recipients_t recp,  gpgme_error_t gpgme_op_encrypt ( gpgme_ctx_t c, gpgme_recipients_t recp,
# Line 587  gpgme_error_t gpgme_op_clip_verify_detac Line 590  gpgme_error_t gpgme_op_clip_verify_detac
590    
591  gpgme_error_t gpgme_op_import( gpgme_ctx_t ctx, gpgme_recipients_t selkeys,  gpgme_error_t gpgme_op_import( gpgme_ctx_t ctx, gpgme_recipients_t selkeys,
592                                 gpgme_data_t keydata );                                 gpgme_data_t keydata );
593  gpgme_error_t gpgme_op_clip_import( int ctrl, gpgme_recipients_t selkeys,  gpgme_error_t gpgme_op_clip_import (gpgme_recipients_t selkeys,
594                                      int * import_res );                                      int * import_res);
595  gpgme_error_t gpgme_op_file_import( gpgme_ctx_t ctx, gpgme_recipients_t selkeys,  gpgme_error_t gpgme_op_file_import( gpgme_ctx_t ctx, gpgme_recipients_t selkeys,
596                                      const char *input );                                      const char *input );
597  gpgme_error_t gpgme_op_import_list( gpgme_ctx_t ctx, gpgme_data_t in,  gpgme_error_t gpgme_op_import_list( gpgme_ctx_t ctx, gpgme_data_t in,
# Line 664  void gpgme_keycache_release (gpgme_keyca Line 667  void gpgme_keycache_release (gpgme_keyca
667  void gpgme_keycache_set_cb (gpgme_keycache_t ctx,  void gpgme_keycache_set_cb (gpgme_keycache_t ctx,
668                              void (*cb)(void *, const char *, int, unsigned, unsigned),                              void (*cb)(void *, const char *, int, unsigned, unsigned),
669                              void * cb_value1, int cb_value2);                              void * cb_value1, int cb_value2);
670  int gpgme_keycache_add_key (gpgme_keycache_t ctx, gpgme_key_t key);  gpgme_error_t gpgme_keycache_add_key (gpgme_keycache_t ctx, gpgme_key_t key,
671                                          void **opaque);
672    gpgme_error_t gpgme_keycache_update_key (gpgme_keycache_t ctx, int is_sec,
673                                             void *opaque, const char *keyid);
674  gpgme_error_t gpgme_keycache_find_key (gpgme_keycache_t ctx, const char * pattern,  gpgme_error_t gpgme_keycache_find_key (gpgme_keycache_t ctx, const char * pattern,
675                                         int flags, gpgme_key_t * r_key);                                         int flags, gpgme_key_t * r_key);
676  gpgme_error_t gpgme_keycache_delete_key (gpgme_keycache_t ctx,  gpgme_error_t gpgme_keycache_delete_key (gpgme_keycache_t ctx,
# Line 675  gpgme_error_t gpgme_keycache_next_key (g Line 681  gpgme_error_t gpgme_keycache_next_key (g
681                                         gpgme_key_t * r_key);                                         gpgme_key_t * r_key);
682  void gpgme_keycache_rewind( gpgme_keycache_t ctx );  void gpgme_keycache_rewind( gpgme_keycache_t ctx );
683  int gpgme_keycache_count( gpgme_keycache_t ctx );  int gpgme_keycache_count( gpgme_keycache_t ctx );
684  gpgme_error_t gpgme_keycache_prepare( gpgme_keycache_t ctx,  gpgme_error_t gpgme_keycache_prepare (gpgme_keycache_t ctx,
685                                      const char *pubring, const char * secring );                                        const char *pubring, const char * secring);
686    gpgme_error_t gpgme_keycache_prepare_single (gpgme_keycache_t ctx,
687                                                 const char *keyid,
688                                                 const char *pubr,
689                                                 const char *secr);
690  gpgme_error_t gpgme_keycache_sync (gpgme_keycache_t pub, gpgme_keycache_t sec);  gpgme_error_t gpgme_keycache_sync (gpgme_keycache_t pub, gpgme_keycache_t sec);
691  int gpgme_getkey_bykeyid( void *fd_handle, const char * keyid, gpgme_key_t *r_key );  int gpgme_getkey_bykeyid (void *fd_handle, const char * keyid, gpgme_key_t *r_key);
692    
693    
694  /* Ownertrust */  /* Ownertrust */
# Line 801  void  gpgme_editkey_setpref_set (gpgme_e Line 811  void  gpgme_editkey_setpref_set (gpgme_e
811                                   int uid_idx, const char * passwd);                                   int uid_idx, const char * passwd);
812  gpgme_error_t gpgme_editkey_addrev_set (gpgme_editkey_t ctx, const char * userid,  gpgme_error_t gpgme_editkey_addrev_set (gpgme_editkey_t ctx, const char * userid,
813                                 const char * passwd);                                 const char * passwd);
814  void gpgme_editkey_addphoto_set( gpgme_editkey_t ctx, const char *jpegfile,  void gpgme_editkey_addphoto_set (gpgme_editkey_t ctx, const char *jpegfile,
815                                   const char * passwd );                                   const char * passwd);
816  void gpgme_editkey_enable_set( gpgme_editkey_t ctx );  void gpgme_editkey_enable_set (gpgme_editkey_t ctx);
817  void gpgme_editkey_disable_set( gpgme_editkey_t ctx );  void gpgme_editkey_disable_set (gpgme_editkey_t ctx);
818    void gpgme_editkey_keyserver_set (gpgme_editkey_t ctx, const char *url,
819                                      int uid_idx, const char * passwd);
820    
821    
822  /* Clipboard interface */  /* Clipboard interface */
823  gpgme_error_t gpgme_clip_istext_avail( int *r_rc );  gpgme_error_t gpgme_clip_istext_avail (int *r_rc);
824  gpgme_error_t gpgme_clip_is_secured( gpgme_cliptype_t *r_type, int *r_rc );  gpgme_error_t gpgme_clip_is_secured (gpgme_pgptype_t *r_type, int *r_rc);
825  gpgme_error_t gpgme_clip_get_pgptype( gpgme_cliptype_t *r_type );  gpgme_error_t gpgme_clip_get_pgptype (gpgme_pgptype_t *r_type);
826  gpgme_error_t gpgme_clip_parse_pgpid( const char *data, gpgme_cliptype_t *r_type );  gpgme_error_t gpgme_clip_parse_pgpid (const char *data, gpgme_pgptype_t *r_type );
827  gpgme_error_t gpgme_clip_do_check( int *r_rc );  gpgme_error_t gpgme_clip_do_check (int *r_rc);
828    
829  #ifdef __cplusplus  #ifdef __cplusplus
830  }  }

Legend:
Removed from v.11  
changed lines
  Added in v.22

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26