tttls1.3 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/README.md +6 -4
- data/lib/tttls1.3/message/extensions.rb +2 -1
- data/lib/tttls1.3/version.rb +1 -1
- 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: 89ddf39b7273edf08fbe46e3b043e3407e6858448643558c79e2d745956bb73a
|
4
|
+
data.tar.gz: d3c67e1558ecf55ea64c6e1b7cf2ae8f76c52e25b02efd23161149532a0b35a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859ba8321cda498360389cc0fdb0cba509cec245f9b822855341e5a50bfcfd9ac38d69b976a55923aaa7026a0973b0d3349d5a1d25826ad70d73074904af0bf0
|
7
|
+
data.tar.gz: 03a828102121e5bc70bdfc39e27e382355f0bc4d8ac9f3f925940d496dc845ec03c2e4c23d097de2a82f1edc3e3110ea4852d098f80239d9c0fa3e94b67fe63d
|
data/.travis.yml
CHANGED
@@ -3,14 +3,13 @@ sudo: false
|
|
3
3
|
language: ruby
|
4
4
|
|
5
5
|
rvm:
|
6
|
-
- 2.6.1
|
7
|
-
- 2.6.2
|
8
6
|
- 2.6.3
|
9
|
-
-
|
7
|
+
- 2.6.4
|
8
|
+
- 2.7.0-preview1
|
10
9
|
|
11
10
|
matrix:
|
12
11
|
allow_failures:
|
13
|
-
- rvm: ruby-
|
12
|
+
- rvm: ruby-2.7.0-preview1
|
14
13
|
|
15
14
|
before_install:
|
16
15
|
- gem install bundler -v 2.0.1
|
data/README.md
CHANGED
@@ -5,7 +5,8 @@
|
|
5
5
|
[![Maintainability](https://api.codeclimate.com/v1/badges/47f3c267d9cfd2c8e388/maintainability)](https://codeclimate.com/github/thekuwayama/tttls1.3/maintainability)
|
6
6
|
|
7
7
|
tttls1.3 is Ruby implementation of [TLS 1.3](https://tools.ietf.org/html/rfc8446) protocol.
|
8
|
-
|
8
|
+
|
9
|
+
tttls1.3 uses [openssl](https://github.com/ruby/openssl) for crypto and X.509 operations.
|
9
10
|
|
10
11
|
It is the purpose of this project to understand the TLS 1.3 protocol and implement the TLS 1.3 protocol using Ruby.
|
11
12
|
Backward compatibility and performance are not objective.
|
@@ -22,7 +23,7 @@ tttls1.3 provides client API with the following features:
|
|
22
23
|
* HelloRetryRequest
|
23
24
|
* Resumed 0-RTT Handshake (with PSK from NST)
|
24
25
|
|
25
|
-
**NOT supports** certificate with OID RSASSA-PSS, X25519, X448, FFDHE, AES-CCM, Client Authentication, Post-Handshake Authentication, KeyUpdate
|
26
|
+
**NOT supports** certificate with OID RSASSA-PSS, X25519, X448, FFDHE, AES-CCM, Client Authentication, Post-Handshake Authentication, KeyUpdate and external PSKs.
|
26
27
|
|
27
28
|
### Server
|
28
29
|
|
@@ -31,7 +32,7 @@ tttls1.3 provides server API with the following features:
|
|
31
32
|
* Simple 1-RTT Handshake
|
32
33
|
* HelloRetryRequest
|
33
34
|
|
34
|
-
**NOT supports** certificate with OID RSASSA-PSS, X25519, X448, FFDHE, AES-CCM, Client Authentication, Post-Handshake Authentication, KeyUpdate, external PSKs.
|
35
|
+
**NOT supports** certificate with OID RSASSA-PSS, X25519, X448, FFDHE, AES-CCM, Client Authentication, Post-Handshake Authentication, KeyUpdate, external PSKs and Resumed 0-RTT Handshake.
|
35
36
|
|
36
37
|
|
37
38
|
## Getting started
|
@@ -73,7 +74,7 @@ server.write(YOUR_MESSAGE)
|
|
73
74
|
server.close
|
74
75
|
```
|
75
76
|
|
76
|
-
|
77
|
+
[Here](https://github.com/thekuwayama/tttls1.3/tree/master/example) are some examples of HTTPS.
|
77
78
|
|
78
79
|
|
79
80
|
## Settings
|
@@ -102,6 +103,7 @@ tttls1.3 client is configurable using keyword arguments.
|
|
102
103
|
| `:compatibility_mode` | Boolean | true | If needed to send ChangeCipherSpec, set true. |
|
103
104
|
| `:loglevel` | Logger constant | Logger::WARN | If needed to print verbose, set Logger::DEBUG. |
|
104
105
|
|
106
|
+
|
105
107
|
### Server
|
106
108
|
|
107
109
|
tttls1.3 server is configurable using keyword arguments.
|
@@ -62,7 +62,8 @@ module TTTLS13
|
|
62
62
|
ex = deserialize_extension(ex_bin, extension_type, msg_type)
|
63
63
|
if ex.nil?
|
64
64
|
# ignore unparsable binary, but only transcript
|
65
|
-
ex = Extension::UnknownExtension.new(extension_type,
|
65
|
+
ex = Extension::UnknownExtension.new(extension_type: extension_type,
|
66
|
+
extension_data: ex_bin)
|
66
67
|
end
|
67
68
|
extensions << ex
|
68
69
|
i += ex_len
|
data/lib/tttls1.3/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tttls1.3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thekuwayama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|