blob: ea9e0c9ef816d788a3877593d1558119294c9a9f [file] [log] [blame]
rsc4180d052004-06-17 03:28:08 +00001#include <u.h>
2#include <libc.h>
3#include <authsrv.h>
4
5static char *pbmsg = "AS protocol botch";
6
7int
8_asgetticket(int fd, char *trbuf, char *tbuf)
9{
10 if(write(fd, trbuf, TICKREQLEN) < 0){
11 close(fd);
12 werrstr(pbmsg);
13 return -1;
14 }
15 return _asrdresp(fd, tbuf, 2*TICKETLEN);
16}