File: 0001-Use-homemade-autoload.php.patch

package info (click to toggle)
php-phpseclib 2.0.49-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,744 kB
  • sloc: php: 11,989; sh: 66; xml: 49; makefile: 23
file content (259 lines) | stat: -rw-r--r-- 8,083 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sat, 26 Sep 2015 17:04:25 -0400
Subject: Use homemade autoload.php

Forwarded: not-needed
---
 phpseclib/Crypt/AES.php        | 2 +-
 phpseclib/Crypt/Blowfish.php   | 2 +-
 phpseclib/Crypt/DES.php        | 2 +-
 phpseclib/Crypt/Hash.php       | 2 +-
 phpseclib/Crypt/RC2.php        | 2 +-
 phpseclib/Crypt/RC4.php        | 2 +-
 phpseclib/Crypt/RSA.php        | 4 ++--
 phpseclib/Crypt/Random.php     | 2 +-
 phpseclib/Crypt/Rijndael.php   | 2 +-
 phpseclib/Crypt/TripleDES.php  | 2 +-
 phpseclib/Crypt/Twofish.php    | 2 +-
 phpseclib/Net/SCP.php          | 2 +-
 phpseclib/Net/SFTP.php         | 2 +-
 phpseclib/Net/SSH1.php         | 4 ++--
 phpseclib/Net/SSH2.php         | 4 ++--
 phpseclib/System/SSH/Agent.php | 2 +-
 16 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/phpseclib/Crypt/AES.php b/phpseclib/Crypt/AES.php
index 9903db1..49d43d6 100644
--- a/phpseclib/Crypt/AES.php
+++ b/phpseclib/Crypt/AES.php
@@ -23,7 +23,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $aes = new \phpseclib\Crypt\AES();
  *
diff --git a/phpseclib/Crypt/Blowfish.php b/phpseclib/Crypt/Blowfish.php
index 346c064..db773b7 100644
--- a/phpseclib/Crypt/Blowfish.php
+++ b/phpseclib/Crypt/Blowfish.php
@@ -95,7 +95,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $blowfish = new \phpseclib\Crypt\Blowfish();
  *
diff --git a/phpseclib/Crypt/DES.php b/phpseclib/Crypt/DES.php
index 26bd385..7d44686 100644
--- a/phpseclib/Crypt/DES.php
+++ b/phpseclib/Crypt/DES.php
@@ -16,7 +16,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $des = new \phpseclib\Crypt\DES();
  *
diff --git a/phpseclib/Crypt/Hash.php b/phpseclib/Crypt/Hash.php
index 5e5d13d..72592a8 100644
--- a/phpseclib/Crypt/Hash.php
+++ b/phpseclib/Crypt/Hash.php
@@ -18,7 +18,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $hash = new \phpseclib\Crypt\Hash('sha1');
  *
diff --git a/phpseclib/Crypt/RC2.php b/phpseclib/Crypt/RC2.php
index e0511b3..61b100d 100644
--- a/phpseclib/Crypt/RC2.php
+++ b/phpseclib/Crypt/RC2.php
@@ -14,7 +14,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $rc2 = new \phpseclib\Crypt\RC2();
  *
diff --git a/phpseclib/Crypt/RC4.php b/phpseclib/Crypt/RC4.php
index 2e5c055..0276de3 100644
--- a/phpseclib/Crypt/RC4.php
+++ b/phpseclib/Crypt/RC4.php
@@ -18,7 +18,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $rc4 = new \phpseclib\Crypt\RC4();
  *
diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php
index 7f5df1d..7ee58ad 100644
--- a/phpseclib/Crypt/RSA.php
+++ b/phpseclib/Crypt/RSA.php
@@ -8,7 +8,7 @@
  * Here's an example of how to encrypt and decrypt text with this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $rsa = new \phpseclib\Crypt\RSA();
  *    extract($rsa->createKey());
@@ -26,7 +26,7 @@
  * Here's an example of how to create signatures and verify signatures with this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $rsa = new \phpseclib\Crypt\RSA();
  *    extract($rsa->createKey());
diff --git a/phpseclib/Crypt/Random.php b/phpseclib/Crypt/Random.php
index e039340..289fcf5 100644
--- a/phpseclib/Crypt/Random.php
+++ b/phpseclib/Crypt/Random.php
@@ -8,7 +8,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    echo bin2hex(\phpseclib\Crypt\Random::string(8));
  * ?>
diff --git a/phpseclib/Crypt/Rijndael.php b/phpseclib/Crypt/Rijndael.php
index 4665738..3f8d473 100644
--- a/phpseclib/Crypt/Rijndael.php
+++ b/phpseclib/Crypt/Rijndael.php
@@ -28,7 +28,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $rijndael = new \phpseclib\Crypt\Rijndael();
  *
diff --git a/phpseclib/Crypt/TripleDES.php b/phpseclib/Crypt/TripleDES.php
index bf2df95..35bc2ed 100644
--- a/phpseclib/Crypt/TripleDES.php
+++ b/phpseclib/Crypt/TripleDES.php
@@ -10,7 +10,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $des = new \phpseclib\Crypt\TripleDES();
  *
diff --git a/phpseclib/Crypt/Twofish.php b/phpseclib/Crypt/Twofish.php
index 1c02048..a0cf52f 100644
--- a/phpseclib/Crypt/Twofish.php
+++ b/phpseclib/Crypt/Twofish.php
@@ -14,7 +14,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $twofish = new \phpseclib\Crypt\Twofish();
  *
diff --git a/phpseclib/Net/SCP.php b/phpseclib/Net/SCP.php
index ee6e1c9..00dabf7 100644
--- a/phpseclib/Net/SCP.php
+++ b/phpseclib/Net/SCP.php
@@ -10,7 +10,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $ssh = new \phpseclib\Net\SSH2('www.domain.tld');
  *    if (!$ssh->login('username', 'password')) {
diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php
index 3d725cf..c636c3d 100644
--- a/phpseclib/Net/SFTP.php
+++ b/phpseclib/Net/SFTP.php
@@ -12,7 +12,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $sftp = new \phpseclib\Net\SFTP('www.domain.tld');
  *    if (!$sftp->login('username', 'password')) {
diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php
index fc8d2ac..cf1d72b 100644
--- a/phpseclib/Net/SSH1.php
+++ b/phpseclib/Net/SSH1.php
@@ -8,7 +8,7 @@
  * Here's a short example of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $ssh = new \phpseclib\Net\SSH1('www.domain.tld');
  *    if (!$ssh->login('username', 'password')) {
@@ -22,7 +22,7 @@
  * Here's another short example:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $ssh = new \phpseclib\Net\SSH1('www.domain.tld');
  *    if (!$ssh->login('username', 'password')) {
diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php
index 4adcec5..09625b9 100644
--- a/phpseclib/Net/SSH2.php
+++ b/phpseclib/Net/SSH2.php
@@ -8,7 +8,7 @@
  * Here are some examples of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $ssh = new \phpseclib\Net\SSH2('www.domain.tld');
  *    if (!$ssh->login('username', 'password')) {
@@ -22,7 +22,7 @@
  *
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $key = new \phpseclib\Crypt\RSA();
  *    //$key->setPassword('whatever');
diff --git a/phpseclib/System/SSH/Agent.php b/phpseclib/System/SSH/Agent.php
index ec1d977..a10163c 100644
--- a/phpseclib/System/SSH/Agent.php
+++ b/phpseclib/System/SSH/Agent.php
@@ -8,7 +8,7 @@
  * Here are some examples of how to use this library:
  * <code>
  * <?php
- *    include 'vendor/autoload.php';
+ *    include 'phpseclib/autoload.php';
  *
  *    $agent = new \phpseclib\System\SSH\Agent();
  *