Skip to content

Commit 81681bb

Browse files
authored
Set library default algorithm blacklist
1 parent 44fe75c commit 81681bb

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/SAML2/Compat/AbstractContainer.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
use SimpleSAML\SAML2\XML\ExtensionPointInterface;
1111
use SimpleSAML\XML\AbstractElement;
1212
use SimpleSAML\XML\Exception\SchemaViolationException;
13+
use SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmFactory;
14+
use SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmFactory;
15+
use SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmFactory;
1316

1417
use function array_key_exists;
1518
use function implode;
@@ -24,7 +27,11 @@ abstract class AbstractContainer
2427
protected array $registry = [];
2528

2629
/** @var array|null */
27-
protected ?array $blacklistedEncryptionAlgorithms;
30+
protected ?array $blacklistedEncryptionAlgorithms = [
31+
EncryptionAlgorithmFactory::DEFAULT_BLACKLIST,
32+
KeyTransportAlgorithmFactory::DEFAULT_BLACKLIST,
33+
SignatureAlgorithmFactory::DEFAULT_BLACKLIST,
34+
];
2835

2936

3037
/**

0 commit comments

Comments
 (0)