mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
changes
This commit is contained in:
parent
cf7bdb33d4
commit
7d59ed7114
4 changed files with 870 additions and 597 deletions
6
CHANGES
6
CHANGES
|
@ -9,11 +9,13 @@ February 11, 2005
|
||||||
lib9pclient: add chatty9pclient
|
lib9pclient: add chatty9pclient
|
||||||
libauth: add fsamount, nsamount, authdial ndb.
|
libauth: add fsamount, nsamount, authdial ndb.
|
||||||
libmach: use %#x explicitly
|
libmach: use %#x explicitly
|
||||||
|
libndb: add
|
||||||
libsec: use new auth_allocrpc in tlshand
|
libsec: use new auth_allocrpc in tlshand
|
||||||
libthread: add threadgetname prototype
|
libthread: add threadgetname prototype
|
||||||
9l: fix libsec/lib9 cycle thanks to netcrypt
|
9l: fix libsec/lib9 cycle thanks to netcrypt
|
||||||
9p: use nsamount, fsamount
|
9p: use nsamount, fsamount; add write -l
|
||||||
9pserve: quieter, auth bug fix
|
9pserve: quieter, auth bug fix
|
||||||
|
9term: treat _ as word character
|
||||||
acid: do not set %# implicitly anymore
|
acid: do not set %# implicitly anymore
|
||||||
add simple pthread support via acid code
|
add simple pthread support via acid code
|
||||||
set corpid
|
set corpid
|
||||||
|
@ -21,8 +23,10 @@ February 11, 2005
|
||||||
dial: send input to net instead of back to 0
|
dial: send input to net instead of back to 0
|
||||||
dict: ahd path
|
dict: ahd path
|
||||||
factotum: make it run and work, add secstore
|
factotum: make it run and work, add secstore
|
||||||
|
remove top-level factotum directory
|
||||||
rc: set p->pid=-1 explicitly to avoid wait problems
|
rc: set p->pid=-1 explicitly to avoid wait problems
|
||||||
psv: add print buttons
|
psv: add print buttons
|
||||||
|
secstored: add it
|
||||||
|
|
||||||
February 10, 2005
|
February 10, 2005
|
||||||
libmach: abortive attempt at pthread support via libthread_db
|
libmach: abortive attempt at pthread support via libthread_db
|
||||||
|
|
1
log/.cvsignore
Normal file
1
log/.cvsignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
|
47
src/cmd/netkey.c
Normal file
47
src/cmd/netkey.c
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
#include <u.h>
|
||||||
|
#include <libc.h>
|
||||||
|
#include <libsec.h>
|
||||||
|
#include <authsrv.h>
|
||||||
|
|
||||||
|
void
|
||||||
|
usage(void)
|
||||||
|
{
|
||||||
|
fprint(2, "usage: netkey\n");
|
||||||
|
exits("usage");
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
char *chal, *pass, buf[32], key[DESKEYLEN];
|
||||||
|
char *s;
|
||||||
|
int n;
|
||||||
|
|
||||||
|
ARGBEGIN{
|
||||||
|
default:
|
||||||
|
usage();
|
||||||
|
}ARGEND
|
||||||
|
if(argc)
|
||||||
|
usage();
|
||||||
|
|
||||||
|
s = getenv("service");
|
||||||
|
if(s && strcmp(s, "cpu") == 0){
|
||||||
|
fprint(2, "netkey must not be run on the cpu server\n");
|
||||||
|
exits("boofhead");
|
||||||
|
}
|
||||||
|
|
||||||
|
pass = readcons("password", nil, 1);
|
||||||
|
if(pass == nil)
|
||||||
|
sysfatal("reading password: %r");
|
||||||
|
passtokey(key, pass);
|
||||||
|
|
||||||
|
for(;;){
|
||||||
|
chal = readcons("challenge", nil, 0);
|
||||||
|
if(chal == nil || *chal == 0)
|
||||||
|
exits(nil);
|
||||||
|
n = strtol(chal, 0, 10);
|
||||||
|
sprint(buf, "%d", n);
|
||||||
|
netcrypt(key, buf);
|
||||||
|
print("response: %s\n", buf);
|
||||||
|
}
|
||||||
|
}
|
1413
src/cmd/tar.C
1413
src/cmd/tar.C
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue