these do work
This commit is contained in:
parent
be8b315d15
commit
4180d05ba4
16 changed files with 790 additions and 0 deletions
16
src/libauthsrv/_asgetticket.c
Normal file
16
src/libauthsrv/_asgetticket.c
Normal file
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue