mirror of https://github.com/M66B/FairEmail.git
Workaround incorrectly signed S/MIME
This commit is contained in:
parent
9f7bc0ee82
commit
73ed9d3187
|
@ -120,6 +120,7 @@ import com.google.android.material.bottomnavigation.BottomNavigationView;
|
|||
import com.google.android.material.floatingactionbutton.FloatingActionButton;
|
||||
import com.google.android.material.snackbar.Snackbar;
|
||||
|
||||
import org.bouncycastle.asn1.ASN1Encoding;
|
||||
import org.bouncycastle.asn1.cms.Attribute;
|
||||
import org.bouncycastle.asn1.cms.AttributeTable;
|
||||
import org.bouncycastle.asn1.cms.CMSAttributes;
|
||||
|
@ -5537,6 +5538,12 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
AttributeTable at = super.getSignedAttributes();
|
||||
return (at == null ? null : at.remove(CMSAttributes.signingTime));
|
||||
}
|
||||
|
||||
@Override
|
||||
public byte[] getEncodedSignedAttributes() throws IOException {
|
||||
// http://www.bouncycastle.org/jira/browse/BJA-587
|
||||
return signedAttributeSet.getEncoded(ASN1Encoding.DL);
|
||||
}
|
||||
};
|
||||
|
||||
if (s.verify(verifier)) {
|
||||
|
|
Loading…
Reference in New Issue