/[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 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 21 by twoaday, Wed Jul 27 11:17:44 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 "20050107ts"  #define GPGME_VERSION "20050418ts"
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 108  typedef enum { Line 108  typedef enum {
108      GPGME_Bad_Signature = 25,      GPGME_Bad_Signature = 25,
109      GPGME_Bad_Passphrase = 26,      GPGME_Bad_Passphrase = 26,
110      GPGME_Inv_Recipients = 28,      GPGME_Inv_Recipients = 28,
111      GPGME_Interal_GPG_Problem = 30,      GPGME_Internal_GPG_Problem = 30,
112      GPGME_Clip_Open = 31,      GPGME_Clip_Open = 31,
113      GPGME_Clip_Empty = 32,      GPGME_Clip_Empty = 32,
114      GPGME_Clip_Get = 33,      GPGME_Clip_Get = 33,
115      GPGME_Cipher_IDEA = 34,      GPGME_Cipher_IDEA = 34,
116      GPGME_Conf_InvOption = 35,      GPGME_Conf_InvOption = 35,
117        GPGME_SC_Failure = 36,
118    
119      /* Recipient Errors */          /* Recipient Errors */    
120      GPGME_RecpError_NoReason      =  100,      GPGME_RecpError_NoReason      =  100,
# Line 192  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 386  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 456  gpgme_error_t gpgme_get_enc_to_ctx( gpgm Line 458  gpgme_error_t gpgme_get_enc_to_ctx( gpgm
458  void gpgme_clear_enc_to_ctx (gpgme_ctx_t ctx);  void gpgme_clear_enc_to_ctx (gpgme_ctx_t ctx);
459  char * gpgme_get_notation (gpgme_ctx_t ctx);  char * gpgme_get_notation (gpgme_ctx_t ctx);
460  char * gpgme_get_logging (gpgme_ctx_t ctx);  char * gpgme_get_logging (gpgme_ctx_t ctx);
461    gpgme_error_t gpgme_check_logging (gpgme_ctx_t ctx);
462  void gpgme_set_comment (gpgme_ctx_t c, const char * text);  void gpgme_set_comment (gpgme_ctx_t c, const char * text);
463  void * gpgme_control( gpgme_ctx_t c, int cmd, int val );  void * gpgme_control( gpgme_ctx_t c, int cmd, int val );
464  void gpgme_set_passphrase_cb( gpgme_ctx_t c,  void gpgme_set_passphrase_cb( gpgme_ctx_t c,
# Line 527  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    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 536  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 661  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 796  void gpgme_editkey_revkey_set( gpgme_edi Line 805  void gpgme_editkey_revkey_set( gpgme_edi
805                                  const char * passwd );                                  const char * passwd );
806  void  gpgme_editkey_setpref_set (gpgme_editkey_t ctx, const char * new_prefs,  void  gpgme_editkey_setpref_set (gpgme_editkey_t ctx, const char * new_prefs,
807                                   int uid_idx, const char * passwd);                                   int uid_idx, const char * passwd);
808  int 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.2  
changed lines
  Added in v.21

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26