Skip to content

Commit 5868c1d

Browse files
committed
FEAT: Added (limited) support for a TLS _server_ role
1 parent ace3eca commit 5868c1d

7 files changed

+743
-309
lines changed

src/boot/sysobj.reb

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ standard: object [
244244
port: construct [ ; Port specification object
245245
spec: ; published specification of the port
246246
scheme: ; scheme object used for this port
247+
parent: ; port's parent (for example HTTPS port in TLS)
247248
actor: ; port action handler (script driven)
248249
awake: ; port awake function (event driven)
249250
state: ; internal state values (private)

src/mezz/codec-ssh-key.reb

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ wrap [
9494
pkix/binary: aes/stream d pkix/binary
9595
][ return none ]
9696
]
97-
sys/log/info 'REBOL ["Trying to resolve:" pkix/label]
97+
sys/log/info 'REBOL ["Importing:" pkix/label]
9898

9999
switch pkix/label [
100100
"SSH2 PUBLIC KEY" [

src/mezz/prot-http.reb

+3-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ read-sync-awake: func [event [event!] /local error][
141141
]
142142
http-awake: func [event /local port http-port state awake res][
143143
port: event/port
144-
http-port: port/extra
144+
http-port: port/parent
145+
145146
state: http-port/state
146147
if any-function? :http-port/awake [state/awake: :http-port/awake]
147148
awake: :state/awake
@@ -798,7 +799,7 @@ sys/make-scheme [
798799
]
799800

800801
conn/awake: :http-awake
801-
conn/extra: port
802+
conn/parent: port
802803
sys/log/info 'HTTP ["Opening connection:^[[22m" conn/spec/ref]
803804
open conn
804805

0 commit comments

Comments
 (0)