kernel: add srvtls and tlsclient to bootfs.proto for encrypting connection to the file server
This commit is contained in:
parent
bd50adc942
commit
613578b69f
4 changed files with 14 additions and 2 deletions
|
@ -37,6 +37,7 @@ $objtype
|
||||||
sleep
|
sleep
|
||||||
srv
|
srv
|
||||||
test
|
test
|
||||||
|
tlsclient
|
||||||
unmount
|
unmount
|
||||||
nusb
|
nusb
|
||||||
usbd
|
usbd
|
||||||
|
@ -52,6 +53,7 @@ rc
|
||||||
bin
|
bin
|
||||||
fstype
|
fstype
|
||||||
diskparts
|
diskparts
|
||||||
|
srvtls
|
||||||
nusbrc 555 sys sys ../boot/nusbrc
|
nusbrc 555 sys sys ../boot/nusbrc
|
||||||
bootrc 555 sys sys ../boot/bootrc
|
bootrc 555 sys sys ../boot/bootrc
|
||||||
tmp
|
tmp
|
||||||
|
|
|
@ -70,7 +70,7 @@ fn main{
|
||||||
if(~ $#nobootprompt 0){
|
if(~ $#nobootprompt 0){
|
||||||
echo
|
echo
|
||||||
showlocaldevs
|
showlocaldevs
|
||||||
ask bootargs ' is (tcp, il, local!device)' $"bootargs
|
ask bootargs ' is (tcp, tls, il, local!device)' $"bootargs
|
||||||
}
|
}
|
||||||
if not bootargs=$nobootprompt
|
if not bootargs=$nobootprompt
|
||||||
nobootprompt=()
|
nobootprompt=()
|
||||||
|
|
|
@ -48,6 +48,12 @@ fn connecttcp{
|
||||||
fs=$fs(1)
|
fs=$fs(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn connecttls{
|
||||||
|
while(! ~ $#fs 0 && ! srvtls -q tcp!$fs(1)^!17020 boot)
|
||||||
|
fs=$fs(2-);
|
||||||
|
fs=$fs(1)
|
||||||
|
}
|
||||||
|
|
||||||
fn connectil{
|
fn connectil{
|
||||||
while(! ~ $#fs 0 && ! srv -q il!$fs(1)^!17008 boot)
|
while(! ~ $#fs 0 && ! srv -q il!$fs(1)^!17008 boot)
|
||||||
fs=$fs(2-);
|
fs=$fs(2-);
|
||||||
|
@ -55,5 +61,7 @@ fn connectil{
|
||||||
}
|
}
|
||||||
|
|
||||||
mtcp=(confignet connecttcp)
|
mtcp=(confignet connecttcp)
|
||||||
|
mtls=(confignet connecttls)
|
||||||
mil=(confignet connectil)
|
mil=(confignet connectil)
|
||||||
mt=(mtcp mil $mt)
|
|
||||||
|
mt=(mtcp mtls mil $mt)
|
||||||
|
|
|
@ -27,6 +27,7 @@ $objtype
|
||||||
sleep
|
sleep
|
||||||
srv
|
srv
|
||||||
test
|
test
|
||||||
|
tlsclient
|
||||||
unmount
|
unmount
|
||||||
xd
|
xd
|
||||||
rc
|
rc
|
||||||
|
@ -34,5 +35,6 @@ rc
|
||||||
rcmain
|
rcmain
|
||||||
net.rc 555 sys sys ../boot/net.rc
|
net.rc 555 sys sys ../boot/net.rc
|
||||||
bin
|
bin
|
||||||
|
srvtls
|
||||||
bootrc 555 sys sys ../boot/bootrc
|
bootrc 555 sys sys ../boot/bootrc
|
||||||
tmp
|
tmp
|
||||||
|
|
Loading…
Reference in a new issue