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
|
||||
srv
|
||||
test
|
||||
tlsclient
|
||||
unmount
|
||||
nusb
|
||||
usbd
|
||||
|
@ -52,6 +53,7 @@ rc
|
|||
bin
|
||||
fstype
|
||||
diskparts
|
||||
srvtls
|
||||
nusbrc 555 sys sys ../boot/nusbrc
|
||||
bootrc 555 sys sys ../boot/bootrc
|
||||
tmp
|
||||
|
|
|
@ -70,7 +70,7 @@ fn main{
|
|||
if(~ $#nobootprompt 0){
|
||||
echo
|
||||
showlocaldevs
|
||||
ask bootargs ' is (tcp, il, local!device)' $"bootargs
|
||||
ask bootargs ' is (tcp, tls, il, local!device)' $"bootargs
|
||||
}
|
||||
if not bootargs=$nobootprompt
|
||||
nobootprompt=()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -27,6 +27,7 @@ $objtype
|
|||
sleep
|
||||
srv
|
||||
test
|
||||
tlsclient
|
||||
unmount
|
||||
xd
|
||||
rc
|
||||
|
@ -34,5 +35,6 @@ rc
|
|||
rcmain
|
||||
net.rc 555 sys sys ../boot/net.rc
|
||||
bin
|
||||
srvtls
|
||||
bootrc 555 sys sys ../boot/bootrc
|
||||
tmp
|
||||
|
|
Loading…
Reference in a new issue