r113410 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r113409
|
r113410
|
r113411
>
Date:
22:00, 8 March 2012
Author:
platonides
Status:
ok
Tags:
Comment:
Also support with ssh-keygen the not-to-be-used feature of
extracting public keys from private PuTTY files, which could
be done with puttygen backend.
Follow-up
r113409
.
Modified paths:
/trunk/extensions/OpenStackManager/special/SpecialNovaKey.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/extensions/OpenStackManager/special/SpecialNovaKey.php
—
—
@@ -259,6 +259,11 @@
260
260
if ( wfIsWindows() || !$wgSshKeygen )
261
261
return false;
262
262
263
+ if ( substr_compare( $keydata, 'PuTTY-User-Key-File-2:', 0, 22 ) == 0 ) {
264
+ $keydata = explode( "\nPrivate-Lines:", $keydata, 2 );
265
+ $keydata = $keydata[0] . "\n";
266
+ }
267
+
263
268
$descriptorspec = array(
264
269
0 => array("pipe", "r"),
265
270
1 => array("pipe", "w"),
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r113409
Follow-up
r113405
. Add support for changing ssh key formats...
platonides
21:48, 8 March 2012
Status & tagging log
22:46, 4 April 2012
Ryan lane
(
talk
|
contribs
)
changed the
status
of r113410
[
removed:
new
added:
ok]