commit | 4180d05ba41196e0633252de26750bb19f3a6da8 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Thu Jun 17 03:28:08 2004 +0000 |
committer | rsc <devnull@localhost> | Thu Jun 17 03:28:08 2004 +0000 |
tree | db31b1dd561963f8e4b922d63573d971757ec122 | |
parent | be8b315d1522fa1c109a49435c1638bafd838b91 [diff] [blame] |
these do work
diff --git a/src/libauthsrv/_asgetticket.c b/src/libauthsrv/_asgetticket.c new file mode 100644 index 0000000..ea9e0c9 --- /dev/null +++ b/src/libauthsrv/_asgetticket.c
@@ -0,0 +1,16 @@ +#include <u.h> +#include <libc.h> +#include <authsrv.h> + +static char *pbmsg = "AS protocol botch"; + +int +_asgetticket(int fd, char *trbuf, char *tbuf) +{ + if(write(fd, trbuf, TICKREQLEN) < 0){ + close(fd); + werrstr(pbmsg); + return -1; + } + return _asrdresp(fd, tbuf, 2*TICKETLEN); +}