History

update libauthsrv, use common readcons() function

cinap_lenrek committed 10 years ago

Commit 0a4c2981 parent e79c78b11 files · +142 −209Browse files

Showing the changes to include (1 of 11 files). Show all

Unified · Split

include/authsrv.h+4−2
@@ -23,6 +23,7 @@ enum · 22 unmodified lines
2323 NETCHLEN= 16, /* max network challenge length (used in AS protocol) */
2424 CONFIGLEN= 14,
2525 SECRETLEN= 32, /* secret max size */
26+ PASSWDLEN= 28, /* password max size */
2627
2728 NONCELEN= 32,
2829
@@ -99,8 +100,8 @@ struct Authenticator · 70 unmodified lines
99100 struct Passwordreq
100101 {
101102 char num;
102− char old[ANAMELEN];
103− char new[ANAMELEN];
103+ char old[PASSWDLEN];
104+ char new[PASSWDLEN];
104105 char changesecret;
105106 char secret[SECRETLEN]; /* new secret */
106107 };
@@ -184,6 +185,7 @@ struct Nvrsafe · 77 unmodified lines
184185
185186 extern uchar nvcsum(void*, int);
186187 extern int readnvram(Nvrsafe*, int);
188+extern char* readcons(char*, char*, int);
187189
188190 /*
189191 * call up auth server

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