Skip to content

Commit

Permalink
Set library defaults for algorithm blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Aug 5, 2024
1 parent 9ee5910 commit 9c3440d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/SAML11/Compat/AbstractContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use SimpleSAML\SAML11\XML\ExtensionPointInterface;
use SimpleSAML\XML\AbstractElement;
use SimpleSAML\XML\Exception\SchemaViolationException;
use SimpleSAML\XMLSecurity\Alg\Encryption\EncryptionAlgorithmFactory;
use SimpleSAML\XMLSecurity\Alg\KeyTransport\KeyTransportAlgorithmFactory;
use SimpleSAML\XMLSecurity\Alg\Signature\SignatureAlgorithmFactory;

use function array_key_exists;
use function implode;
Expand All @@ -24,7 +27,11 @@ abstract class AbstractContainer
protected array $registry = [];

/** @var array|null */
protected ?array $blacklistedEncryptionAlgorithms;
protected ?array $blacklistedEncryptionAlgorithms = [
EncryptionAlgorithmFactory::DEFAULT_BLACKLIST,
KeyTransportAlgorithmFactory::DEFAULT_BLACKLIST,
SignatureAlgorithmFactory::DEFAULT_BLACKLIST,
];


/**
Expand Down

0 comments on commit 9c3440d

Please sign in to comment.