diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-15 19:57:13 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-15 19:57:13 +0100 |
commit | e42981dfcfd7451bb8f122c366f024e877c3fab7 (patch) | |
tree | c20f7869744348ab02c7ccfbc3d33c2813ec1722 /sys/include/authsrv.h | |
parent | 240ba73770ef98cfbbad9eddd6f445bf5cfec166 (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.h | 2 |
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 |