faye-websocket 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/faye/websocket/ssl_verifier.rb +8 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb4b4ae774c914839c9b5b45496d4eb31d9c0603ada45373b8de2055d5231dc5
|
4
|
+
data.tar.gz: 666a6f3a350022a7cbf3df69f8f7d292fb912f5b8e9b05b8ba3b194b07be5940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9475c32e62af18f17a56b0cdf26df4916cc3035d92cbd9be733fb5ae8da0bf57124385625a11558196cade588be91ab81bafc5ad8ef516b7ab09cfaeb8a3cb7
|
7
|
+
data.tar.gz: 4a81daa717bda6a500a03e9b60b4b303c7e071d8d262bb763112a0cf75dba7d6f637db6448988a9ccc3149951440be12db165e1cbe0d1b593aaa603519d6ac89
|
data/CHANGELOG.md
CHANGED
@@ -42,14 +42,13 @@ module Faye
|
|
42
42
|
return true unless should_verify?
|
43
43
|
|
44
44
|
certificate = parse_cert(cert_text)
|
45
|
-
|
46
|
-
|
47
|
-
unless @cert_store.verify(certificate)
|
48
|
-
raise SSLError, "Unable to verify the server certificate for '#{ @hostname }'"
|
45
|
+
unless certificate
|
46
|
+
raise SSLError, "Unable to parse SSL certificate for '#{ @hostname }'"
|
49
47
|
end
|
50
48
|
|
51
|
-
store_cert(certificate)
|
52
49
|
@last_cert = certificate
|
50
|
+
@last_cert_verified = @cert_store.verify(certificate)
|
51
|
+
store_cert(certificate) if @last_cert_verified
|
53
52
|
|
54
53
|
true
|
55
54
|
end
|
@@ -57,6 +56,10 @@ module Faye
|
|
57
56
|
def ssl_handshake_completed
|
58
57
|
return unless should_verify?
|
59
58
|
|
59
|
+
unless @last_cert_verified
|
60
|
+
raise SSLError, "Unable to verify the server certificate for '#{ @hostname }'"
|
61
|
+
end
|
62
|
+
|
60
63
|
unless identity_verified?
|
61
64
|
raise SSLError, "Host '#{ @hostname }' does not match the server certificate"
|
62
65
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faye-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Coglan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eventmachine
|