23 lines · 450 B · C
RawDownload
#include <u.h>#include <libc.h>#include <authsrv.h> intconvTR2M(Ticketreq *f, char *ap, int n){	uchar *p; 	if(n < TICKREQLEN)		return 0; 	p = (uchar*)ap;	*p++ = f->type;	memmove(p, f->authid, ANAMELEN), p += ANAMELEN;	memmove(p, f->authdom, DOMLEN), p += DOMLEN;	memmove(p, f->chal, CHALLEN), p += CHALLEN;	memmove(p, f->hostid, ANAMELEN), p += ANAMELEN;	memmove(p, f->uid, ANAMELEN), p += ANAMELEN;	n = p - (uchar*)ap; 	return n;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t