mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-26 20:31:06 +01:00
2002-06-14 Timo Schulz <ts@winpt.org>
* skclist.c (is_insecure): Implemented.
This commit is contained in:
parent
26f00196b3
commit
08ad6bc159
@ -1,3 +1,7 @@
|
|||||||
|
2002-06-14 Timo Schulz <ts@winpt.org>
|
||||||
|
|
||||||
|
* skclist.c (is_insecure): Implemented.
|
||||||
|
|
||||||
2002-06-12 David Shaw <dshaw@jabberwocky.com>
|
2002-06-12 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
|
* keyserver.c (keyserver_spawn): Properly handle PROGRAM responses
|
||||||
|
@ -55,10 +55,29 @@ release_sk_list( SK_LIST sk_list )
|
|||||||
static int
|
static int
|
||||||
is_insecure( PKT_secret_key *sk )
|
is_insecure( PKT_secret_key *sk )
|
||||||
{
|
{
|
||||||
|
u32 keyid[2];
|
||||||
|
KBNODE node = NULL, u;
|
||||||
|
int insecure = 0;
|
||||||
|
|
||||||
return 0; /* FIXME!! */
|
keyid_from_sk( sk, keyid );
|
||||||
|
node = get_pubkeyblock( keyid );
|
||||||
|
for ( u = node; u; u = u->next ) {
|
||||||
|
if ( u->pkt->pkttype == PKT_USER_ID ) {
|
||||||
|
PKT_user_id *id = u->pkt->pkt.user_id;
|
||||||
|
if ( id->attrib_data )
|
||||||
|
continue; /* skip attribute packets */
|
||||||
|
if ( strstr( id->name, "(insecure!)" )
|
||||||
|
|| strstr( id->name, "not secure" )
|
||||||
|
|| strstr( id->name, "do not use" ) ) {
|
||||||
|
insecure = 1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
release_kbnode( node );
|
||||||
|
|
||||||
|
return insecure;
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
key_present_in_sk_list(SK_LIST sk_list, PKT_secret_key *sk)
|
key_present_in_sk_list(SK_LIST sk_list, PKT_secret_key *sk)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user