151
151
int setup_symkey(STRING2KEY **symkey_s2k,DEK **symkey_dek);
152
152
int encode_symmetric( const char *filename );
153
153
int encode_store( const char *filename );
154
int encode_crypt( const char *filename, STRLIST remusr, int use_symkey );
155
void encode_crypt_files(int nfiles, char **files, STRLIST remusr);
154
int encode_crypt( const char *filename, strlist_t remusr, int use_symkey );
155
void encode_crypt_files(int nfiles, char **files, strlist_t remusr);
156
156
int encrypt_filter( void *opaque, int control,
157
157
iobuf_t a, byte *buf, size_t *ret_len);
161
161
int complete_sig( PKT_signature *sig, PKT_secret_key *sk, gcry_md_hd_t md );
162
int sign_file( STRLIST filenames, int detached, STRLIST locusr,
163
int do_encrypt, STRLIST remusr, const char *outfile );
164
int clearsign_file( const char *fname, STRLIST locusr, const char *outfile );
165
int sign_symencrypt_file (const char *fname, STRLIST locusr);
162
int sign_file( strlist_t filenames, int detached, strlist_t locusr,
163
int do_encrypt, strlist_t remusr, const char *outfile );
164
int clearsign_file( const char *fname, strlist_t locusr, const char *outfile );
165
int sign_symencrypt_file (const char *fname, strlist_t locusr);
167
167
/*-- sig-check.c --*/
168
168
int check_revocation_keys (PKT_public_key *pk, PKT_signature *sig);
174
174
u32 *r_expiredate, int *r_expired );
176
176
/*-- delkey.c --*/
177
int delete_keys( STRLIST names, int secret, int allow_both );
177
int delete_keys( strlist_t names, int secret, int allow_both );
179
179
/*-- keyedit.c --*/
180
void keyedit_menu( const char *username, STRLIST locusr,
181
STRLIST commands, int quiet, int seckey_check );
180
void keyedit_menu( const char *username, strlist_t locusr,
181
strlist_t commands, int quiet, int seckey_check );
182
182
void show_basic_key_info (KBNODE keyblock);
184
184
/*-- keygen.c --*/
238
238
/*-- export.c --*/
239
239
int parse_export_options(char *str,unsigned int *options,int noisy);
240
int export_pubkeys( STRLIST users, unsigned int options );
241
int export_pubkeys_stream( iobuf_t out, STRLIST users,
240
int export_pubkeys( strlist_t users, unsigned int options );
241
int export_pubkeys_stream( iobuf_t out, strlist_t users,
242
242
KBNODE *keyblock_out, unsigned int options );
243
int export_seckeys( STRLIST users );
244
int export_secsubkeys( STRLIST users );
243
int export_seckeys( strlist_t users );
244
int export_secsubkeys( strlist_t users );
246
246
/* dearmor.c --*/
247
247
int dearmor_file( const char *fname );
250
250
/*-- revoke.c --*/
251
251
struct revocation_reason_info;
252
252
int gen_revoke( const char *uname );
253
int gen_desig_revoke( const char *uname, STRLIST locusr);
253
int gen_desig_revoke( const char *uname, strlist_t locusr);
254
254
int revocation_reason_build_cb( PKT_signature *sig, void *opaque );
255
255
struct revocation_reason_info *
256
256
ask_revocation_reason( int key_rev, int cert_rev, int hint );
257
257
void release_revocation_reason_info( struct revocation_reason_info *reason );
259
259
/*-- keylist.c --*/
260
void public_key_list( STRLIST list );
261
void secret_key_list( STRLIST list );
260
void public_key_list( strlist_t list );
261
void secret_key_list( strlist_t list );
262
262
void print_subpackets_colon(PKT_signature *sig);
263
263
void reorder_keyblock (KBNODE keyblock);
264
264
void list_keyblock( KBNODE keyblock, int secret, int fpr, void *opaque );
286
286
/*-- plaintext.c --*/
287
287
int hash_datafiles( gcry_md_hd_t md, gcry_md_hd_t md2,
288
STRLIST files, const char *sigfilename, int textmode );
288
strlist_t files, const char *sigfilename, int textmode );
289
289
PKT_plaintext *setup_plaintext_name(const char *filename,IOBUF iobuf);
291
291
/*-- signal.c --*/
299
299
/*-- card-util.c --*/
300
300
void change_pin (int no, int allow_admin);
301
301
void card_status (FILE *fp, char *serialno, size_t serialnobuflen);
302
void card_edit (STRLIST commands);
302
void card_edit (strlist_t commands);
303
303
int card_generate_subkey (KBNODE pub_keyblock, KBNODE sec_keyblock);
304
304
int card_store_subkey (KBNODE node, int use);
307
#define S2K_DECODE_COUNT(_val) ((16ul + ((_val) & 15)) << (((_val) >> 4) + 6))
307
309
#endif /*G10_MAIN_H*/