aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-11-03 00:00:42 +0000
committerDavid Shaw <[email protected]>2002-11-03 00:00:42 +0000
commit39e659312ee9afe170fc2fc8b9a62481d1c7af29 (patch)
treef8616502e8e11748acb2b85ba3a59cec2aa91834 /g10/main.h
parent* cipher.c (string_to_cipher_algo), md.c (string_to_digest_algo): Allow (diff)
downloadgnupg-39e659312ee9afe170fc2fc8b9a62481d1c7af29.tar.gz
gnupg-39e659312ee9afe170fc2fc8b9a62481d1c7af29.zip
* keygen.c (set_one_pref, keygen_set_std_prefs): Allow using the full
algorithm name (CAST5, SHA1) rather than the short form (S3, H2). * main.h, keygen.c (keygen_get_std_prefs), keyedit.c (keyedit_menu): Return and use a fake uid packet rather than a string since we already have a nice parser/printer in keyedit.c:show_prefs. * main.h, misc.c (string_to_compress_algo): New.
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h
index 57c7e8ce6..0365ed557 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -84,6 +84,7 @@ int hextobyte( const char *s );
void deprecated_warning(const char *configname,unsigned int configlineno,
const char *option,const char *repl1,const char *repl2);
const char *compress_algo_to_string(int algo);
+int string_to_compress_algo(const char *string);
int check_compress_algo(int algo);
/*-- helptext.c --*/
@@ -124,7 +125,7 @@ u32 ask_expire_interval(int object);
u32 ask_expiredate(void);
void generate_keypair( const char *fname );
int keygen_set_std_prefs (const char *string,int personal);
-char *keygen_get_std_prefs (void);
+PKT_user_id *keygen_get_std_prefs (void);
int keygen_add_key_expire( PKT_signature *sig, void *opaque );
int keygen_add_std_prefs( PKT_signature *sig, void *opaque );
int keygen_upd_std_prefs( PKT_signature *sig, void *opaque );