]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/include/authsrv.h
aux/cpuid: decode family and model bitfields
[plan9front.git] / sys / include / authsrv.h
index b423992c190602283bc001c01d3324a76d11d1d5..4fabc381479176057204c781b9fce895a0d1123e 100644 (file)
@@ -26,6 +26,7 @@ enum
        NETCHLEN=       16,     /* max network challenge length (used in AS protocol) */
        CONFIGLEN=      14,
        SECRETLEN=      32,     /* secret max size */
+       PASSWDLEN=      28,     /* password max size */
 
        NONCELEN=       32,
 
@@ -102,12 +103,12 @@ struct Authenticator
 struct Passwordreq
 {
        char    num;
-       char    old[ANAMELEN];
-       char    new[ANAMELEN];
+       char    old[PASSWDLEN];
+       char    new[PASSWDLEN];
        char    changesecret;
        char    secret[SECRETLEN];      /* new secret */
 };
-#define        MAXPASSREQLEN   (12+2*ANAMELEN+1+SECRETLEN+16)
+#define        MAXPASSREQLEN   (12+2*PASSWDLEN+1+SECRETLEN+16)
 
 struct OChapreply
 {
@@ -187,6 +188,7 @@ struct Nvrsafe
 
 extern uchar   nvcsum(void*, int);
 extern int     readnvram(Nvrsafe*, int);
+extern char*   readcons(char*, char*, int);
 
 /*
  *  call up auth server