|
|
@ -1535,7 +1535,7 @@ DYNAMIC_API PEP_STATUS encrypt_message( |
|
|
|
_status = PEP_STATUS_OK; |
|
|
|
} |
|
|
|
bool is_blacklisted = false; |
|
|
|
if (_il->ident->fpr) { |
|
|
|
if (_il->ident->fpr && IS_PGP_CT(_il->ident->comm_type)) { |
|
|
|
_status = blacklist_is_listed(session, _il->ident->fpr, &is_blacklisted); |
|
|
|
if (_status != PEP_STATUS_OK) { |
|
|
|
// DB error |
|
|
@ -1587,7 +1587,7 @@ DYNAMIC_API PEP_STATUS encrypt_message( |
|
|
|
_status = PEP_STATUS_OK; |
|
|
|
} |
|
|
|
bool is_blacklisted = false; |
|
|
|
if (_il->ident->fpr) { |
|
|
|
if (_il->ident->fpr && IS_PGP_CT(_il->ident->comm_type)) { |
|
|
|
_status = blacklist_is_listed(session, _il->ident->fpr, &is_blacklisted); |
|
|
|
if (_status != PEP_STATUS_OK) { |
|
|
|
// DB error |
|
|
@ -1638,7 +1638,7 @@ DYNAMIC_API PEP_STATUS encrypt_message( |
|
|
|
_status = PEP_STATUS_OK; |
|
|
|
} |
|
|
|
bool is_blacklisted = false; |
|
|
|
if (_il->ident->fpr) { |
|
|
|
if (_il->ident->fpr && IS_PGP_CT(_il->ident->comm_type)) { |
|
|
|
_status = blacklist_is_listed(session, _il->ident->fpr, &is_blacklisted); |
|
|
|
if (_status != PEP_STATUS_OK) { |
|
|
|
// DB error |
|
|
@ -2982,7 +2982,7 @@ static void _max_comm_type_from_identity_list( |
|
|
|
status = myself(session, il->ident); |
|
|
|
|
|
|
|
bool is_blacklisted = false; |
|
|
|
if (il->ident->fpr) { |
|
|
|
if (il->ident->fpr && IS_PGP_CT(il->ident->comm_type)) { |
|
|
|
status = blacklist_is_listed(session, il->ident->fpr, &is_blacklisted); |
|
|
|
if (is_blacklisted) { |
|
|
|
bool user_default, ident_default, address_default; |
|
|
@ -3078,6 +3078,26 @@ DYNAMIC_API PEP_STATUS identity_rating( |
|
|
|
else |
|
|
|
status = update_identity(session, ident); |
|
|
|
|
|
|
|
bool is_blacklisted = false; |
|
|
|
|
|
|
|
if (ident->fpr && IS_PGP_CT(ident->comm_type)) { |
|
|
|
status = blacklist_is_listed(session, ident->fpr, &is_blacklisted); |
|
|
|
if (status != PEP_STATUS_OK) { |
|
|
|
return status; // DB ERROR |
|
|
|
} |
|
|
|
if (is_blacklisted) { |
|
|
|
bool user_default, ident_default, address_default; |
|
|
|
status = get_valid_pubkey(session, ident, |
|
|
|
&ident_default, &user_default, |
|
|
|
&address_default, |
|
|
|
true); |
|
|
|
if (status != PEP_STATUS_OK || ident->fpr == NULL) { |
|
|
|
ident->comm_type = PEP_ct_key_not_found; |
|
|
|
status = PEP_STATUS_OK; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (status == PEP_STATUS_OK) |
|
|
|
*rating = _rating(ident->comm_type, PEP_rating_undefined); |
|
|
|
|
|
|
|