putty-key 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data/CHANGES.md +7 -0
- data/Gemfile +16 -0
- data/LICENSE +1 -1
- data/Rakefile +2 -2
- data/lib/putty/key/openssl.rb +11 -1
- data/lib/putty/key/version.rb +1 -1
- data/putty-key.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1c65726c4468a416efcd8617dab76d88660cf732254089a5a342c16f9eabc5d
|
4
|
+
data.tar.gz: cb96dba0c50957fea7add686d9447fcbb65d42bd1bc5bfbd61d81feb98c79a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa668b32837bb8aacd74d1623ede0b0bef2b6b38c06927b684ee69beb767d611bff059cb4a20b2ffce699523f217af8e815896187ebf1b0cb2b0aabb452ea61d
|
7
|
+
data.tar.gz: d1aec232b10f62cdaa62368144d550dee02de413509869731809cf1f314b3e538fa60b77a373751dffa45e36b0bdca06b08041d282c30cdf4e0d4a588779e261
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
����:�������ɠ 0�v����=��]��[�nP���<o���� E�d b�S;���������/��c4^��h�<�1|����@��@ ��(�ً3r|�!����I�RA�m�Ɣ=�_m'��9h��@�ܸ�wC�<�*
|
2
|
+
:ɘ�
|
3
|
+
�q�Mż���X����=�gן@)p��x�:
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changes #
|
2
2
|
|
3
|
+
## Version 1.1.2 - 16-Oct-2024 ##
|
4
|
+
|
5
|
+
* Fix `Java::JavaLang::NullPointerException` being raised instead of
|
6
|
+
`PuTTY::Key::InvalidStateError` by `OpenSSL::PKey::EC#to_ppk` on JRuby 9.4
|
7
|
+
when the key is not initialized.
|
8
|
+
|
9
|
+
|
3
10
|
## Version 1.1.1 - 23-Oct-2022 ##
|
4
11
|
|
5
12
|
* Add support for Ruby 3.2.
|
data/Gemfile
CHANGED
@@ -15,6 +15,22 @@ group :test do
|
|
15
15
|
gem 'coveralls', git: 'https://github.com/philr/coveralls-ruby.git', require: false if RUBY_VERSION < '2.3'
|
16
16
|
gem 'coveralls_reborn', '~> 0.13', require: false if RUBY_VERSION >= '2.3'
|
17
17
|
|
18
|
+
# term-ansicolor is a dependency of coveralls. All versions are falsely
|
19
|
+
# declared as compatible with any Ruby version.
|
20
|
+
#
|
21
|
+
# Limit to an earlier compatible version.
|
22
|
+
if RUBY_VERSION < '2.5'
|
23
|
+
gem 'term-ansicolor', '< 1.9'
|
24
|
+
end
|
25
|
+
|
26
|
+
# tins is a dependency of coveralls. From 1.33.0 it depends on bigdecimal,
|
27
|
+
# which can't be installed on old JRuby versions.
|
28
|
+
#
|
29
|
+
# Limit to an earlier compatible version.
|
30
|
+
if RUBY_ENGINE == 'jruby'
|
31
|
+
gem 'tins', '< 1.33'
|
32
|
+
end
|
33
|
+
|
18
34
|
# The source version of ffi 1.15.5 is declared as compatible with Ruby >= 2.3.
|
19
35
|
# The binary version of 1.15.5 is declared as compatible with Ruby >= 2.4, so
|
20
36
|
# doesn't get used. The using the source version results in a segmentation
|
data/LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -4,11 +4,11 @@ require 'rubygems/package_task'
|
|
4
4
|
require 'rake/testtask'
|
5
5
|
|
6
6
|
BASE_DIR = File.expand_path(File.dirname(__FILE__))
|
7
|
+
GEMSPEC_PATH = File.join(BASE_DIR, 'putty-key.gemspec')
|
8
|
+
spec = TOPLEVEL_BINDING.eval(File.read(GEMSPEC_PATH), GEMSPEC_PATH)
|
7
9
|
|
8
10
|
task :default => :test
|
9
11
|
|
10
|
-
spec = eval(File.read('putty-key.gemspec'))
|
11
|
-
|
12
12
|
# Attempt to find the private key and return a spec with added options for
|
13
13
|
# signing the gem if found.
|
14
14
|
def add_signing_key(spec)
|
data/lib/putty/key/openssl.rb
CHANGED
@@ -25,6 +25,11 @@ module PuTTY
|
|
25
25
|
|
26
26
|
private_constant :SSH_CURVES
|
27
27
|
|
28
|
+
# Either a real JRuby NullPointerException, or a fake class that won't be
|
29
|
+
# raised. Can be rescued to handle NullPointerException on jruby.
|
30
|
+
JavaNullPointerException = RUBY_ENGINE == 'jruby' ? Java::JavaLang::NullPointerException : Class.new(Exception)
|
31
|
+
private_constant :JavaNullPointerException
|
32
|
+
|
28
33
|
# OpenSSL version helper methods.
|
29
34
|
#
|
30
35
|
# @private
|
@@ -355,7 +360,12 @@ module PuTTY
|
|
355
360
|
# @raise [UnsupportedCurveError] If the key uses a curve that is not
|
356
361
|
# supported by PuTTY.
|
357
362
|
def to_ppk
|
358
|
-
|
363
|
+
g = group
|
364
|
+
curve = g && begin
|
365
|
+
g.curve_name
|
366
|
+
rescue JavaNullPointerException
|
367
|
+
nil
|
368
|
+
end
|
359
369
|
raise InvalidStateError, 'The key has not been fully initialized (a curve name must be assigned)' unless curve
|
360
370
|
ssh_curve = SSH_CURVES[curve]
|
361
371
|
raise UnsupportedCurveError, "The curve '#{curve}' is not supported" unless ssh_curve
|
data/lib/putty/key/version.rb
CHANGED
data/putty-key.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: putty-key
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Ross
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
J3Zn/kSTjTekiaspyGbczC3PUaeJNxr+yCvR4sk71Xmk/GaKKGOHedJ1uj/LAXrA
|
30
30
|
MR0mpl7b8zCg0PFC1J73uw==
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2024-10-16 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: ffi
|
@@ -139,9 +139,9 @@ licenses:
|
|
139
139
|
metadata:
|
140
140
|
bug_tracker_uri: https://github.com/philr/putty-key/issues
|
141
141
|
changelog_uri: https://github.com/philr/putty-key/blob/master/CHANGES.md
|
142
|
-
documentation_uri: https://rubydoc.info/gems/putty-key/1.1.
|
142
|
+
documentation_uri: https://rubydoc.info/gems/putty-key/1.1.2
|
143
143
|
homepage_uri: https://github.com/philr/putty-key
|
144
|
-
source_code_uri: https://github.com/philr/putty-key/tree/v1.1.
|
144
|
+
source_code_uri: https://github.com/philr/putty-key/tree/v1.1.2
|
145
145
|
post_install_message:
|
146
146
|
rdoc_options:
|
147
147
|
- "--title"
|
@@ -164,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
requirements:
|
166
166
|
- libargon2 to handle format 3 .ppk files
|
167
|
-
rubygems_version: 3.
|
167
|
+
rubygems_version: 3.5.16
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: PuTTY private key (.ppk) library. Supports reading and writing with a refinement
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
K��,�ߪR�9TO�������ui��%�E��S�Y]&�W���)�
|
2
|
+
��X�������@�L��
|