From 8a1c5f8ff870995d911b6f19602a7cea7432b9aa Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 24 Jan 2014 07:45:31 +0100 Subject: php-phpseclib-crypt-rsa: import from rawhide --- Crypt_RSA-role.patch | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Crypt_RSA-role.patch (limited to 'Crypt_RSA-role.patch') diff --git a/Crypt_RSA-role.patch b/Crypt_RSA-role.patch new file mode 100644 index 0000000..079032c --- /dev/null +++ b/Crypt_RSA-role.patch @@ -0,0 +1,42 @@ +--- Crypt_RSA-0.3.5/RSA.php 2014-01-07 11:18:22.000000000 +0100 ++++ Crypt_RSA-0.3.5/RSA.php.fix 2014-01-07 11:18:22.000000000 +0100 +@@ -171,7 +171,7 @@ define('CRYPT_RSA_MODE_OPENSSL', 2); + /** + * Default openSSL configuration file. + */ +-define('CRYPT_RSA_OPENSSL_CONFIG', dirname(__FILE__) . '/../openssl.cnf'); ++define('CRYPT_RSA_OPENSSL_CONFIG', 'openssl.cnf'); + + + /**#@+ +@@ -465,7 +465,14 @@ class Crypt_RSA { + require_once('Math/BigInteger.php'); + } + +- $this->configFile = CRYPT_RSA_OPENSSL_CONFIG; ++ $dir = '@cfg_dir@' . DIRECTORY_SEPARATOR . 'Crypt_RSA'; ++ if (strpos($dir, '@') === false) { ++ // PEAR installer was used to install the package ++ } else { ++ // manual install ++ $dir = dirname(__FILE__); ++ } ++ $this->configFile = $dir . DIRECTORY_SEPARATOR . CRYPT_RSA_OPENSSL_CONFIG; + + if ( !defined('CRYPT_RSA_MODE') ) { + switch (true) { +--- package.xml 2014-01-07 11:03:40.000000000 +0100 ++++ package.xml.fix 2014-01-07 11:06:12.000000000 +0100 +@@ -23,8 +23,10 @@ + 0.3.5 release + + +- +- ++ ++ ++ ++ + + + -- cgit