Subversion Repositories oidplus

Rev

Rev 1042 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1042 Rev 1051
Line 592... Line 592...
592
     */
592
     */
593
    protected function isValidEngineHelper($engine)
593
    protected function isValidEngineHelper($engine)
594
    {
594
    {
595
        if ($this->key_length_max == 8) {
595
        if ($this->key_length_max == 8) {
596
            if ($engine == self::ENGINE_OPENSSL) {
596
            if ($engine == self::ENGINE_OPENSSL) {
-
 
597
                // quoting https://www.openssl.org/news/openssl-3.0-notes.html, OpenSSL 3.0.1
-
 
598
                // "Moved all variations of the EVP ciphers CAST5, BF, IDEA, SEED, RC2, RC4, RC5, and DES to the legacy provider"
-
 
599
                // in theory openssl_get_cipher_methods() should catch this but, on GitHub Actions, at least, it does not
-
 
600
                if (version_compare(preg_replace('#OpenSSL (\d+\.\d+\.\d+) .*#', '$1', OPENSSL_VERSION_TEXT), '3.0.1', '>=')) {
-
 
601
                    return false;
-
 
602
                }
597
                $this->cipher_name_openssl_ecb = 'des-ecb';
603
                $this->cipher_name_openssl_ecb = 'des-ecb';
598
                $this->cipher_name_openssl = 'des-' . $this->openssl_translate_mode();
604
                $this->cipher_name_openssl = 'des-' . $this->openssl_translate_mode();
599
            }
605
            }
600
        }
606
        }
601
 
607