]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/include/authsrv.h
update colemak kbmap, simpler version with scroll working (thanks jeremy)
[plan9front.git] / sys / include / authsrv.h
index 5c0b368e77a4a5782af79057f8f07c8654074734..8fb2d08df968766d7f439c0284bb1dd9aaa918bb 100644 (file)
@@ -11,6 +11,7 @@ typedef struct        Nvrsafe         Nvrsafe;
 typedef struct Passwordreq     Passwordreq;
 typedef struct OChapreply      OChapreply;
 typedef struct OMSchapreply    OMSchapreply;
+typedef struct NTLMreply       NTLMreply;
 
 typedef struct Authkey         Authkey;
 
@@ -62,6 +63,7 @@ enum
        AuthVNC=14,     /* VNC server login (deprecated) */
        AuthPAK=19,     /* authenticated diffie hellman key agreement */
        AuthMSchapv2=21,/* MS chap v2 authentication for ppp */
+       AuthNTLM=22,    /* NTLM authentication for cifs */
        AuthTs=64,      /* ticket encrypted with server's key */
        AuthTc,         /* ticket encrypted with client's key */
        AuthAs,         /* server generated authenticator */
@@ -127,6 +129,16 @@ struct     OMSchapreply
 };
 #define OMSCHAPREPLYLEN        (ANAMELEN+24+24)
 
+struct NTLMreply
+{
+       uchar   len[2];                 /* size of structure (lsb first) */
+       char    uid[ANAMELEN];
+       char    dom[DOMLEN];
+       char    LMresp[24];             /* Lan Manager response */
+       char    NTresp[24];             /* NT response (variable length) */
+};
+#define NTLMREPLYLEN   (2+ANAMELEN+DOMLEN+24+24)
+
 struct Authkey
 {
        char    des[DESKEYLEN];         /* DES key from password */