mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-28 22:49:59 +01:00
* misc.c (print_digest_algo_note): The latest 2440bis drafts deprecates
MD5, so give a warning. (print_pubkey_algo_note, print_cipher_algo_note, print_digest_algo_note): Give the algorithm name in the experimental algo warning.
This commit is contained in:
parent
37ecd725e5
commit
c09b34fede
@ -1,3 +1,11 @@
|
|||||||
|
2004-11-03 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* misc.c (print_digest_algo_note): The latest 2440bis drafts
|
||||||
|
deprecates MD5, so give a warning.
|
||||||
|
(print_pubkey_algo_note, print_cipher_algo_note,
|
||||||
|
print_digest_algo_note): Give the algorithm name in the
|
||||||
|
experimental algo warning.
|
||||||
|
|
||||||
2004-11-03 Timo Schulz <twoaday@g10code.com>
|
2004-11-03 Timo Schulz <twoaday@g10code.com>
|
||||||
|
|
||||||
* passphrase.c (readn, writen): Use w32_strerror instead
|
* passphrase.c (readn, writen): Use w32_strerror instead
|
||||||
|
66
g10/misc.c
66
g10/misc.c
@ -287,46 +287,32 @@ buffer_to_u32( const byte *buffer )
|
|||||||
return a;
|
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
|
void
|
||||||
print_pubkey_algo_note( int algo )
|
print_pubkey_algo_note( int algo )
|
||||||
{
|
{
|
||||||
if( algo >= 100 && algo <= 110 )
|
if(algo >= 100 && algo <= 110)
|
||||||
no_exp_algo();
|
{
|
||||||
|
static int warn=0;
|
||||||
|
if(!warn)
|
||||||
|
{
|
||||||
|
warn=1;
|
||||||
|
log_info(_("WARNING: using experimental public key algorithm %s\n"),
|
||||||
|
pubkey_algo_to_string(algo));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
print_cipher_algo_note( int algo )
|
print_cipher_algo_note( int algo )
|
||||||
{
|
{
|
||||||
if( algo >= 100 && algo <= 110 )
|
if(algo >= 100 && algo <= 110)
|
||||||
no_exp_algo();
|
{
|
||||||
else if( algo == CIPHER_ALGO_3DES
|
static int warn=0;
|
||||||
|| algo == CIPHER_ALGO_CAST5
|
if(!warn)
|
||||||
|| algo == CIPHER_ALGO_BLOWFISH
|
{
|
||||||
|| algo == CIPHER_ALGO_TWOFISH
|
warn=1;
|
||||||
|| algo == CIPHER_ALGO_AES
|
log_info(_("WARNING: using experimental cipher algorithm %s\n"),
|
||||||
|| algo == CIPHER_ALGO_AES192
|
cipher_algo_to_string(algo));
|
||||||
|| algo == CIPHER_ALGO_AES256
|
|
||||||
)
|
|
||||||
;
|
|
||||||
else {
|
|
||||||
static int did_note = 0;
|
|
||||||
|
|
||||||
if( !did_note ) {
|
|
||||||
did_note = 1;
|
|
||||||
log_info(_("this cipher algorithm is deprecated; "
|
|
||||||
"please use a more standard one!\n"));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -334,11 +320,21 @@ print_cipher_algo_note( int algo )
|
|||||||
void
|
void
|
||||||
print_digest_algo_note( int algo )
|
print_digest_algo_note( int algo )
|
||||||
{
|
{
|
||||||
if( algo >= 100 && algo <= 110 )
|
if(algo >= 100 && algo <= 110)
|
||||||
no_exp_algo();
|
{
|
||||||
|
static int warn=0;
|
||||||
|
if(!warn)
|
||||||
|
{
|
||||||
|
warn=1;
|
||||||
|
log_info(_("WARNING: using experimental digest algorithm %s\n"),
|
||||||
|
digest_algo_to_string(algo));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if(algo==DIGEST_ALGO_MD5)
|
||||||
|
log_info(_("WARNING: digest algorithm %s is deprecated\n"),
|
||||||
|
digest_algo_to_string(algo));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Return a string which is used as a kind of process ID */
|
/* Return a string which is used as a kind of process ID */
|
||||||
const byte *
|
const byte *
|
||||||
get_session_marker( size_t *rlen )
|
get_session_marker( size_t *rlen )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user