|
|
@ -10142,6 +10142,10 @@ public class FragmentMessages extends FragmentBase
|
|
|
|
EntityCertificate record = db.certificate().getCertificate(fingerprint, email);
|
|
|
|
EntityCertificate record = db.certificate().getCertificate(fingerprint, email);
|
|
|
|
if (record == null)
|
|
|
|
if (record == null)
|
|
|
|
known = false;
|
|
|
|
known = false;
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
args.putString("keyalgo", record.getSigAlgName());
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
String sender = null;
|
|
|
|
String sender = null;
|
|
|
@ -10407,6 +10411,7 @@ public class FragmentMessages extends FragmentBase
|
|
|
|
boolean valid = args.getBoolean("valid");
|
|
|
|
boolean valid = args.getBoolean("valid");
|
|
|
|
String reason = args.getString("reason");
|
|
|
|
String reason = args.getString("reason");
|
|
|
|
String algo = args.getString("algo");
|
|
|
|
String algo = args.getString("algo");
|
|
|
|
|
|
|
|
String keyalgo = args.getString("keyalgo");
|
|
|
|
final ArrayList<String> trace = args.getStringArrayList("trace");
|
|
|
|
final ArrayList<String> trace = args.getStringArrayList("trace");
|
|
|
|
EntityCertificate record = EntityCertificate.from(cert, null);
|
|
|
|
EntityCertificate record = EntityCertificate.from(cert, null);
|
|
|
|
|
|
|
|
|
|
|
@ -10438,6 +10443,8 @@ public class FragmentMessages extends FragmentBase
|
|
|
|
TextView tvBefore = dview.findViewById(R.id.tvBefore);
|
|
|
|
TextView tvBefore = dview.findViewById(R.id.tvBefore);
|
|
|
|
TextView tvExpired = dview.findViewById(R.id.tvExpired);
|
|
|
|
TextView tvExpired = dview.findViewById(R.id.tvExpired);
|
|
|
|
TextView tvAlgorithm = dview.findViewById(R.id.tvAlgorithm);
|
|
|
|
TextView tvAlgorithm = dview.findViewById(R.id.tvAlgorithm);
|
|
|
|
|
|
|
|
TextView tvKeyAlgorithmTitle = dview.findViewById(R.id.tvKeyAlgorithmTitle);
|
|
|
|
|
|
|
|
TextView tvKeyAlgorithm = dview.findViewById(R.id.tvKeyAlgorithm);
|
|
|
|
|
|
|
|
|
|
|
|
tvCertificateInvalid.setVisibility(valid ? View.GONE : View.VISIBLE);
|
|
|
|
tvCertificateInvalid.setVisibility(valid ? View.GONE : View.VISIBLE);
|
|
|
|
tvCertificateReason.setText(reason);
|
|
|
|
tvCertificateReason.setText(reason);
|
|
|
@ -10456,6 +10463,12 @@ public class FragmentMessages extends FragmentBase
|
|
|
|
algo = algo.replace("(?i)With", "/");
|
|
|
|
algo = algo.replace("(?i)With", "/");
|
|
|
|
tvAlgorithm.setText(algo);
|
|
|
|
tvAlgorithm.setText(algo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tvKeyAlgorithmTitle.setVisibility(info ? View.VISIBLE : View.GONE);
|
|
|
|
|
|
|
|
if (!TextUtils.isEmpty(keyalgo))
|
|
|
|
|
|
|
|
keyalgo = keyalgo.replaceAll("(?i)With", "/");
|
|
|
|
|
|
|
|
tvKeyAlgorithm.setVisibility(info ? View.VISIBLE : View.GONE);
|
|
|
|
|
|
|
|
tvKeyAlgorithm.setText(keyalgo);
|
|
|
|
|
|
|
|
|
|
|
|
ibInfo.setOnClickListener(new View.OnClickListener() {
|
|
|
|
ibInfo.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
public void onClick(View v) {
|
|
|
|