Browse Source

removed some debug code

master
Edouard Tisserant 7 years ago
parent
commit
84dfa75cd3
3 changed files with 2 additions and 6 deletions
  1. +0
    -3
      dist/src/lib/keyring.c
  2. +2
    -0
      dist/src/lib/keyring.h
  3. +0
    -3
      dist/src/lib/validate.c

+ 0
- 3
dist/src/lib/keyring.c View File

@ -553,17 +553,14 @@ unsigned key_is_weak(
if(kbl == 0)
{
*res = PGP_INVALID;
return 1;
}
else if(kbl < 1024)
{
*res = PGP_TOOSHORT;
return 1;
}
else if(kbl == 1024 && key->alg == PGP_PKA_RSA)
{
*res = PGP_WEAK;
return 1;
}
return 0;


+ 2
- 0
dist/src/lib/keyring.h View File

@ -219,4 +219,6 @@ pgp_key_find_uid_cond(
unsigned checkrevoke,
unsigned checkexpiry);
const pgp_key_rating_t pgp_key_get_rating(const pgp_key_t *key);
#endif /* KEYRING_H_ */

+ 0
- 3
dist/src/lib/validate.c View File

@ -410,9 +410,6 @@ pgp_validate_key_cb(const pgp_packet_t *pkt, pgp_cbdata_t *cbinfo)
case PGP_CERT_POSITIVE:
case PGP_SIG_REV_CERT:
if(vdata->last_seen == LS_ID){
if(strcmp((const char*)vdata->userid,"Volker Birk (Testkey - don't use) <volker.birk@digitalekho.com>") == 0){
printf("XXXXXXXXXXXXXX %d %s\n", valid, vdata->userid);
}
valid = pgp_check_useridcert_sig(
primary_pubkey,
vdata->userid,


Loading…
Cancel
Save