Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37567198
en ru br
ALT Linux repositórios
S:27.0.1-alt1

Group :: Rede/WWW
RPM: nextcloud

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: nextcloud-fix-openssl-config.patch
Download


diff --git a/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php
index 9961fa93d94..f426fb4612c 100644
--- a/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php
+++ b/nextcloud/lib/private/Authentication/Token/PublicKeyTokenProvider.php
@@ -347,18 +347,19 @@ class PublicKeyTokenProvider implements IProvider {
 		$config = array_merge([
 			'digest_alg' => 'sha512',
 			'private_key_bits' => $password !== null && strlen($password) > 250 ? 4096 : 2048,
+			'config' => '/var/www/webapps/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib/openssl.cnf',
 		], $this->config->getSystemValue('openssl', []));
 
 		// Generate new key
 		$res = openssl_pkey_new($config);
 		if ($res === false) {
 			$this->logOpensslError();
-			throw new \RuntimeException('OpenSSL reported a problem');
+			//throw new \RuntimeException('OpenSSL reported a problem');
 		}
 
 		if (openssl_pkey_export($res, $privateKey, null, $config) === false) {
 			$this->logOpensslError();
-			throw new \RuntimeException('OpenSSL reported a problem');
+			//throw new \RuntimeException('OpenSSL reported a problem');
 		}
 
 		// Extract the public key from $res to $pubKey
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009