diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-25 18:00:24 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-12-25 18:00:24 +0000 |
commit | 5b032deb0cbe7e1b959e37950c160382fa55d7a8 (patch) | |
tree | c976bbb08ccd0cde3fb18bd5bb3101a0fe870fab /sys/src/libc | |
parent | 3bd5ff9583c4b33aa27754fb4c3b6792261feb8a (diff) |
libsec: use /net/tls instead of #a/tls
Namespace files have been updated and the tls device
is now available under /net.
Diffstat (limited to 'sys/src/libc')
-rw-r--r-- | sys/src/libc/9sys/pushtls.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/src/libc/9sys/pushtls.c b/sys/src/libc/9sys/pushtls.c index 07e6c35a4..bdaccdc34 100644 --- a/sys/src/libc/9sys/pushtls.c +++ b/sys/src/libc/9sys/pushtls.c @@ -47,9 +47,7 @@ pushtls(int fd, char *hashalg, char *encalg, int isclient, char *secret, char *d // open a new filter; get ctl fd data = hand = -1; - // /net/tls uses decimal file descriptors to name channels, hence a - // user-level file server can't stand in for #a; may as well hard-code it. - ctl = open("#a/tls/clone", ORDWR|OCEXEC); + ctl = open("/net/tls/clone", ORDWR|OCEXEC); if(ctl < 0) goto error; n = read(ctl, buf, sizeof(buf)-1); @@ -57,16 +55,16 @@ pushtls(int fd, char *hashalg, char *encalg, int isclient, char *secret, char *d goto error; buf[n] = 0; if(dir) - sprint(dir, "#a/tls/%s", buf); + sprint(dir, "/net/tls/%s", buf); // get application fd - snprint(dname, sizeof(dname), "#a/tls/%s/data", buf); + snprint(dname, sizeof(dname), "/net/tls/%s/data", buf); data = open(dname, ORDWR); if(data < 0) goto error; // get handshake fd - snprint(dname, sizeof(dname), "#a/tls/%s/hand", buf); + snprint(dname, sizeof(dname), "/net/tls/%s/hand", buf); hand = open(dname, ORDWR|OCEXEC); if(hand < 0) goto error; |