ref: b4a399495c67b2d1a69aa0df1f6ec5d2607977a0
dir: /sys/src/libauthsrv/_asgetticket.c/
#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){
werrstr(pbmsg);
return -1;
}
return _asrdresp(fd, tbuf, 2*TICKETLEN);
}