summaryrefslogtreecommitdiff
path: root/sys/include/authsrv.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-15 19:57:13 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-15 19:57:13 +0100
commite42981dfcfd7451bb8f122c366f024e877c3fab7 (patch)
treec20f7869744348ab02c7ccfbc3d33c2813ec1722 /sys/include/authsrv.h
parent240ba73770ef98cfbbad9eddd6f445bf5cfec166 (diff)
factotum/authsrv: fix padding for mschap on amd64, use constants for structure sizes
Diffstat (limited to 'sys/include/authsrv.h')
-rw-r--r--sys/include/authsrv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/authsrv.h b/sys/include/authsrv.h
index 41ef56a3a..79805fea2 100644
--- a/sys/include/authsrv.h
+++ b/sys/include/authsrv.h
@@ -100,6 +100,7 @@ struct OChapreply
char uid[ANAMELEN];
char resp[OMD5LEN];
};
+#define OCHAPREPLYLEN (1+ANAMELEN+OMD5LEN)
struct OMSchapreply
{
@@ -107,6 +108,7 @@ struct OMSchapreply
char LMresp[24]; /* Lan Manager response */
char NTresp[24]; /* NT response */
};
+#define OMSCHAPREPLYLEN (ANAMELEN+24+24)
/*
* convert to/from wire format