/[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 13 by twoaday, Mon Apr 25 07:15:30 2005 UTC revision 21 by twoaday, Wed Jul 27 11:17:44 2005 UTC
# 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 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 801  void  gpgme_editkey_setpref_set (gpgme_e Line 807  void  gpgme_editkey_setpref_set (gpgme_e
807                                   int uid_idx, const char * passwd);                                   int uid_idx, const char * passwd);
808  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,
809                                 const char * passwd);                                 const char * passwd);
810  void gpgme_editkey_addphoto_set( gpgme_editkey_t ctx, const char *jpegfile,  void gpgme_editkey_addphoto_set (gpgme_editkey_t ctx, const char *jpegfile,
811                                   const char * passwd );                                   const char * passwd);
812  void gpgme_editkey_enable_set( gpgme_editkey_t ctx );  void gpgme_editkey_enable_set (gpgme_editkey_t ctx);
813  void gpgme_editkey_disable_set( gpgme_editkey_t ctx );  void gpgme_editkey_disable_set (gpgme_editkey_t ctx);
814    void gpgme_editkey_keyserver_set (gpgme_editkey_t ctx, const char *url,
815                                      int uid_idx, const char * passwd);
816    
817    
818  /* Clipboard interface */  /* Clipboard interface */
819  gpgme_error_t gpgme_clip_istext_avail( int *r_rc );  gpgme_error_t gpgme_clip_istext_avail (int *r_rc);
820  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);
821  gpgme_error_t gpgme_clip_get_pgptype( gpgme_cliptype_t *r_type );  gpgme_error_t gpgme_clip_get_pgptype (gpgme_pgptype_t *r_type);
822  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 );
823  gpgme_error_t gpgme_clip_do_check( int *r_rc );  gpgme_error_t gpgme_clip_do_check (int *r_rc);
824    
825  #ifdef __cplusplus  #ifdef __cplusplus
826  }  }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26