protocol-zmtp 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/protocol/zmtp/mechanism/curve.rb +2 -2
- data/lib/protocol/zmtp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad013d03184eae1f5298d9ebbd5bc9a1fd2657ac7c45002a298547b36ad7f63d
|
|
4
|
+
data.tar.gz: 137204024322094d2e76ef7103444e27143c18176b8a19b06c7e978c0b1fccd1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ddbde5122489f94110878c0854167627a39207aa3c428aafdbec536dbcbcd39e0c9522ab23a97dc464766c0a42f7b8d6cf4689322486355880b53aa1def6385
|
|
7
|
+
data.tar.gz: 6f069bf0af5fdff20496f376ed792bd2e3059cb64c1374674eaf7fbbbcaf2226b2f8cf69f9be9b49d994b7ab0a2e0fca26373248572b65db36653bba40846395
|
|
@@ -155,7 +155,7 @@ module Protocol
|
|
|
155
155
|
def encrypt(body, more: false, command: false)
|
|
156
156
|
flags = 0
|
|
157
157
|
flags |= 0x01 if more
|
|
158
|
-
flags |=
|
|
158
|
+
flags |= 0x02 if command
|
|
159
159
|
|
|
160
160
|
plaintext = String.new(encoding: Encoding::BINARY, capacity: 1 + body.bytesize)
|
|
161
161
|
plaintext << flags << body
|
|
@@ -212,7 +212,7 @@ module Protocol
|
|
|
212
212
|
|
|
213
213
|
flags = plaintext.getbyte(0)
|
|
214
214
|
body = plaintext.byteslice(1..) || "".b
|
|
215
|
-
Codec::Frame.new(body, more: (flags & 0x01) != 0, command: (flags &
|
|
215
|
+
Codec::Frame.new(body, more: (flags & 0x01) != 0, command: (flags & 0x02) != 0)
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
private
|