ARC: allow whitelisting all domains

This commit is contained in:
M66B
2023-03-17 10:46:51 +01:00
parent 567cc07ecc
commit 864a090d82

View File

@@ -2104,7 +2104,8 @@ public class MessageHelper {
String arc = ams.get(ams.size());
String signer = verifySignatureHeader(context, arc, ARC_MESSAGE_SIGNATURE, amessage);
if (signer != null && !signers.contains(signer)) {
boolean whitelisted = whitelist.contains(signer);
boolean whitelisted = (whitelist.contains(signer) ||
"*".equals(native_arc_whitelist));
Log.i("ARC signer=" + signer + " whitelisted=" + whitelisted);
if (whitelisted)
signers.add(signer);