Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/libauthsrv/_asgetticket.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <authsrv.h>
4
 
5
static char *pbmsg = "AS protocol botch";
6
 
7
int
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
}