summaryrefslogtreecommitdiff
path: root/sys/src/libauth
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-01-02 04:31:21 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2018-01-02 04:31:21 +0100
commite1ca49d625aaca1aae1dc570e7bc63a499d3e741 (patch)
treed82db2131c03af283ea2db2ee2b37cb1f27c2f9e /sys/src/libauth
parent1d7bb80793f57de919873b5b80b0db9a79437083 (diff)
libauth: remove auth_wep() function, and non-existing httpauth() declaration
Diffstat (limited to 'sys/src/libauth')
-rw-r--r--sys/src/libauth/auth_wep.c50
-rw-r--r--sys/src/libauth/mkfile1
2 files changed, 0 insertions, 51 deletions
diff --git a/sys/src/libauth/auth_wep.c b/sys/src/libauth/auth_wep.c
deleted file mode 100644
index afde46b90..000000000
--- a/sys/src/libauth/auth_wep.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#include <u.h>
-#include <libc.h>
-#include <auth.h>
-#include "authlocal.h"
-
-/*
- * make factotum add wep keys to an 802.11 device
- */
-int
-auth_wep(char *dev, char *fmt, ...)
-{
- AuthRpc *rpc;
- char *params, *p;
- int fd;
- va_list arg;
- int rv;
-
- rv = -1;
-
- if(dev == nil){
- werrstr("no device specified");
- return rv;
- }
-
- fd = open("/mnt/factotum/rpc", ORDWR);
- if(fd < 0)
- return rv;
-
- rpc = auth_allocrpc(fd);
- if(rpc != nil){
- quotefmtinstall(); /* just in case */
- va_start(arg, fmt);
- params = vsmprint(fmt, arg);
- va_end(arg);
- if(params != nil){
- p = smprint("proto=wep %s", params);
- if(p != nil){
- if(auth_rpc(rpc, "start", p, strlen(p)) == ARok
- && auth_rpc(rpc, "write", dev, strlen(dev)) == ARok)
- rv = 0;
- free(p);
- }
- free(params);
- }
- auth_freerpc(rpc);
- }
- close(fd);
-
- return rv;
-}
diff --git a/sys/src/libauth/mkfile b/sys/src/libauth/mkfile
index a78b23aa7..2030db8f1 100644
--- a/sys/src/libauth/mkfile
+++ b/sys/src/libauth/mkfile
@@ -14,7 +14,6 @@ OFILES=\
auth_respond.$O\
auth_rpc.$O\
auth_userpasswd.$O\
- auth_wep.$O\
login.$O\
newns.$O\
noworld.$O\