diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-16 22:55:30 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-05-16 22:55:30 +0200 |
commit | 613578b69f8bada4c6aa791e56768e59b017b20c (patch) | |
tree | f0252703f5fce5ff1e20bb187a70de853f487210 /sys/src/9/boot/net.rc | |
parent | bd50adc942797ef52ac80ab29b5edca8bddd554b (diff) |
kernel: add srvtls and tlsclient to bootfs.proto for encrypting connection to the file server
Diffstat (limited to 'sys/src/9/boot/net.rc')
-rwxr-xr-x | sys/src/9/boot/net.rc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/src/9/boot/net.rc b/sys/src/9/boot/net.rc index fb399ef97..27458081a 100755 --- a/sys/src/9/boot/net.rc +++ b/sys/src/9/boot/net.rc @@ -48,6 +48,12 @@ fn connecttcp{ fs=$fs(1) } +fn connecttls{ + while(! ~ $#fs 0 && ! srvtls -q tcp!$fs(1)^!17020 boot) + fs=$fs(2-); + fs=$fs(1) +} + fn connectil{ while(! ~ $#fs 0 && ! srv -q il!$fs(1)^!17008 boot) fs=$fs(2-); @@ -55,5 +61,7 @@ fn connectil{ } mtcp=(confignet connecttcp) +mtls=(confignet connecttls) mil=(confignet connectil) -mt=(mtcp mil $mt) + +mt=(mtcp mtls mil $mt) |