mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-22 07:42:52 +00:00
Get S/MIME sign algorithm
This commit is contained in:
parent
9d9e51a270
commit
99c07f6b60
1 changed files with 2 additions and 2 deletions
|
@ -10149,7 +10149,7 @@ public class FragmentMessages extends FragmentBase
|
||||||
String keyalgo = null;
|
String keyalgo = null;
|
||||||
String keyalgooid = null;
|
String keyalgooid = null;
|
||||||
try {
|
try {
|
||||||
keyalgooid = s.getEncryptionAlgOID();
|
keyalgooid = s.getDigestAlgOID();
|
||||||
DefaultAlgorithmNameFinder af = new DefaultAlgorithmNameFinder();
|
DefaultAlgorithmNameFinder af = new DefaultAlgorithmNameFinder();
|
||||||
keyalgo = af.getAlgorithmName(new ASN1ObjectIdentifier(keyalgooid));
|
keyalgo = af.getAlgorithmName(new ASN1ObjectIdentifier(keyalgooid));
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
@ -10170,7 +10170,7 @@ public class FragmentMessages extends FragmentBase
|
||||||
String algo = null;
|
String algo = null;
|
||||||
String algooid = null;
|
String algooid = null;
|
||||||
try {
|
try {
|
||||||
algooid = s.getEncryptionAlgOID();
|
algooid = s.getDigestAlgOID();
|
||||||
DefaultAlgorithmNameFinder af = new DefaultAlgorithmNameFinder();
|
DefaultAlgorithmNameFinder af = new DefaultAlgorithmNameFinder();
|
||||||
algo = af.getAlgorithmName(new ASN1ObjectIdentifier(algooid));
|
algo = af.getAlgorithmName(new ASN1ObjectIdentifier(algooid));
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
|
|
Loading…
Reference in a new issue