/[winpt]/trunk/Gnupg/packet.h
ViewVC logotype

Diff of /trunk/Gnupg/packet.h

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

revision 45 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 46 by werner, Fri Oct 28 12:57:05 2005 UTC
# Line 1  Line 1 
 #ifndef GPGLIB_PACKET_H  
 #define GPGLIB_PACKET_H  
   
 int copy_all_packets( gpg_iobuf_t inp, gpg_iobuf_t out );  
 int copy_some_packets( gpg_iobuf_t inp, gpg_iobuf_t out, _off_t stopoff );  
 int skip_some_packets( gpg_iobuf_t inp, unsigned n );  
 int set_packet_list_mode( int mode );  
 int search_packet( gpg_iobuf_t inp, PACKET *pkt, _off_t *retpos, int with_uid );  
   
 const byte *enum_sig_subpkt ( const subpktarea_t *subpkts,  
                               sigsubpkttype_t reqtype,  
                               size_t *ret_n, int *start, int *critical );  
   
 const byte * get_session_marker( size_t *rlen );  
   
 void free_symkey_enc( PKT_symkey_enc *enc );  
 void free_pubkey_enc( PKT_pubkey_enc *enc );  
 void free_seckey_enc( PKT_signature *enc );  
 int  digest_algo_from_sig( PKT_signature *sig );  
 void release_public_key_parts( PKT_public_key *pk );  
 void free_public_key( PKT_public_key *key );  
 void release_secret_key_parts( PKT_secret_key *sk );  
 void free_secret_key( PKT_secret_key *sk );  
 void free_attributes(PKT_user_id *uid);  
 void free_user_id( PKT_user_id *uid );  
 void free_comment( PKT_comment *rem );  
   
   
 int parse_one_sig_subpkt( const byte *buffer, size_t n, int type );  
 void parse_revkeys(PKT_signature *sig);  
 int parse_attribute_subpkts(PKT_user_id *uid);  
 void make_attribute_uidname(PKT_user_id *uid);  
   
 prefitem_t *copy_prefs (const prefitem_t *prefs);  
   
 void copy_public_parts_to_secret_key( PKT_public_key *pk, PKT_secret_key *sk );  
   
 /*-- armor.c --*/  
 void print_string( FILE *fp, const byte *p, size_t n, int delim );  
 const char* get_armor_error( void );  
   
 #endif /*GPGLIB_PACKET_H*/  
1    #ifndef GPGLIB_PACKET_H
2    #define GPGLIB_PACKET_H
3    
4    int copy_all_packets( gpg_iobuf_t inp, gpg_iobuf_t out );
5    int copy_some_packets( gpg_iobuf_t inp, gpg_iobuf_t out, _off_t stopoff );
6    int skip_some_packets( gpg_iobuf_t inp, unsigned n );
7    int set_packet_list_mode( int mode );
8    int search_packet( gpg_iobuf_t inp, PACKET *pkt, _off_t *retpos, int with_uid );
9    
10    const byte *enum_sig_subpkt ( const subpktarea_t *subpkts,
11                                  sigsubpkttype_t reqtype,
12                                  size_t *ret_n, int *start, int *critical );
13    
14    const byte * get_session_marker( size_t *rlen );
15    
16    void free_symkey_enc( PKT_symkey_enc *enc );
17    void free_pubkey_enc( PKT_pubkey_enc *enc );
18    void free_seckey_enc( PKT_signature *enc );
19    int  digest_algo_from_sig( PKT_signature *sig );
20    void release_public_key_parts( PKT_public_key *pk );
21    void free_public_key( PKT_public_key *key );
22    void release_secret_key_parts( PKT_secret_key *sk );
23    void free_secret_key( PKT_secret_key *sk );
24    void free_attributes(PKT_user_id *uid);
25    void free_user_id( PKT_user_id *uid );
26    void free_comment( PKT_comment *rem );
27    
28    
29    int parse_one_sig_subpkt( const byte *buffer, size_t n, int type );
30    void parse_revkeys(PKT_signature *sig);
31    int parse_attribute_subpkts(PKT_user_id *uid);
32    void make_attribute_uidname(PKT_user_id *uid);
33    
34    prefitem_t *copy_prefs (const prefitem_t *prefs);
35    
36    void copy_public_parts_to_secret_key( PKT_public_key *pk, PKT_secret_key *sk );
37    
38    /*-- armor.c --*/
39    void print_string( FILE *fp, const byte *p, size_t n, int delim );
40    const char* get_armor_error( void );
41    
42    #endif /*GPGLIB_PACKET_H*/

Legend:
Removed from v.45  
changed lines
  Added in v.46

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26