Skip to content

Commit bcb875a

Browse files
committed
FIX: minor TLS code optimization
1 parent 4e1f607 commit bcb875a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/mezz/prot-tls.reb

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
REBOL [
2-
Title: "REBOL3 TLSv1.2 protocol scheme"
2+
Title: "Rebol3 TLSv1.2 protocol scheme"
33
Name: tls
44
Type: module
55
Rights: {
@@ -13,6 +13,7 @@ REBOL [
1313
}
1414
Author: ["Richard 'Cyphre' Smolak" "Oldes" "Brian Dickens (Hostilefork)"]
1515
Version: 0.8.0
16+
Date: 5-Feb-2022
1617
history: [
1718
0.6.1 "Cyphre" "Initial implementation used in old R3-alpha"
1819
0.7.0 "Oldes" {
@@ -1651,14 +1652,11 @@ TLS-parse-handshake-message: function [
16511652
]
16521653

16531654
send-event: function[
1654-
type [word!]
1655-
port [port!]
1655+
event [word!]
1656+
target [port!]
16561657
][
1657-
log-debug ["Send-event:^[[1m" type]
1658-
insert system/ports/system make event! compose [
1659-
type: (to lit-word! type)
1660-
port: (port)
1661-
]
1658+
log-debug ["Send-event:^[[1m" event]
1659+
insert system/ports/system make event! [ type: event port: target ]
16621660
]
16631661

16641662
TLS-awake: function [event [event!]][
@@ -1728,6 +1726,7 @@ TLS-awake: function [event [event!]][
17281726
read [
17291727
error: try [
17301728
log-info ["READ TCP" length? TCP-port/data "bytes proto-state:" TLS-port/state/protocol]
1729+
;@@ This part deserves a serious review!
17311730
;dump/fmt TCP-port/data
17321731
complete?: TLS-read-data TLS-port/state TCP-port/data
17331732
;? port

0 commit comments

Comments
 (0)