diff options
author | Werner Koch <[email protected]> | 1998-12-10 19:20:47 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-12-10 19:20:47 +0000 |
commit | af6e96e4f918169508acd8a710309cf617eff3c1 (patch) | |
tree | be313d86fcf1e63ae95686216e149e3aac770749 /g10/misc.c | |
parent | See ChangeLog: Wed Dec 9 13:41:06 CET 1998 Werner Koch (diff) | |
download | gnupg-af6e96e4f918169508acd8a710309cf617eff3c1.tar.gz gnupg-af6e96e4f918169508acd8a710309cf617eff3c1.zip |
See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner Koch
Diffstat (limited to '')
-rw-r--r-- | g10/misc.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/g10/misc.c b/g10/misc.c index adab4321f..a52114748 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -187,3 +187,61 @@ buffer_to_u32( const byte *buffer ) return a; } + +static void +no_exp_algo(void) +{ + static int did_note = 0; + + if( !did_note ) { + did_note = 1; + log_info(_("Experimental algorithms should not be used!\n")); + } +} + +void +print_pubkey_algo_note( int algo ) +{ + if( algo >= 100 && algo <= 110 ) + no_exp_algo(); + else if( is_RSA( algo ) ) { + static int did_note = 0; + + if( !did_note ) { + did_note = 1; + log_info(_("RSA keys are deprecated; please consider " + "creating a new key and use this key in the future\n")); + } + } +} + +void +print_cipher_algo_note( int algo ) +{ + if( algo >= 100 && algo <= 110 ) + no_exp_algo(); + else if( algo == CIPHER_ALGO_3DES + || algo == CIPHER_ALGO_CAST5 + || algo == CIPHER_ALGO_BLOWFISH + ) + ; + else { + static int did_note = 0; + + if( !did_note ) { + did_note = 1; + log_info(_("This cipher algorithm is depreciated; " + "please use a more standard one!\n")); + } + } +} + +void +print_digest_algo_note( int algo ) +{ + if( algo >= 100 && algo <= 110 ) + no_exp_algo(); +} + + + |