mirror of
https://github.com/0intro/conterm
synced 2024-11-25 07:09:34 +03:00
17 lines
280 B
C
17 lines
280 B
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){
|
|
close(fd);
|
|
werrstr(pbmsg);
|
|
return -1;
|
|
}
|
|
return _asrdresp(fd, tbuf, 2*TICKETLEN);
|
|
}
|