3 authdial, passtokey, nvcsum, readnvram, convT2M, convM2T, convTR2M, convM2TR, convA2M, convM2A, convPR2M, convM2PR, _asgetticket, _asrdresp \- routines for communicating with authentication servers
12 .ta 8n +4n +4n +4n +4n +4n +4n
15 int authdial(char *netroot, char *ad);
18 int passtokey(char key[DESKEYLEN], char *password)
21 uchar nvcsum(void *mem, int len)
24 int readnvram(Nvrsafe *nv, int flag);
27 int convT2M(Ticket *t, char *msg, char *key)
30 void convM2T(char *msg, Ticket *t, char *key)
33 int convA2M(Authenticator *a, char *msg, char *key)
36 void convM2A(char *msg, Authenticator *a, char *key)
39 int convTR2M(Ticketreq *tr, char *msg)
42 void convM2TR(char *msg, Ticketreq *tr)
45 int convPR2M(Passwordreq *pr, char *msg, char *key)
48 void convM2PR(char *msg, Passwordreq *pr, char *key)
51 int _asgetticket(int fd, char *trbuf, char *tbuf);
54 int _asrdresp(int fd, char *buf, int len);
57 dials an authentication server over the
62 The authentication domain,
64 specifies which server to call.
72 is queried for an entry which contains
76 the former having precedence,
77 and which also contains an
80 If it finds neither, it tries
82 in DNS as the authentication server.
83 The string dialed is then
84 .I netroot\fP!\fIserver\fP!ticket
90 If no entry is found, the error string is
91 set to ``no authentication server found''
96 .IB netroot !$auth! ticket
97 is used to make the call.
102 into a DES key and stores the result in
106 could not be converted,
110 reads authentication information into the structure:
113 .ta 4n +4n +8n +4n +4n +4n +4n
116 char machkey[DESKEYLEN]; /* was file server's authid's des key */
118 char authkey[DESKEYLEN]; /* authid's des key from password */
121 * file server config string of device holding full configuration;
122 * secstore key on non-file-servers.
124 char config[CONFIGLEN];
126 char authid[ANAMELEN]; /* auth userid, e.g., bootes */
128 char authdom[DOMLEN]; /* auth domain, e.g., cs.bell-labs.com */
133 On Sparc, MIPS, and SGI machines this information is
134 in non-volatile ram, accessible in the file
138 successively opens the following areas stopping with the
141 \- the partition named by the
165 on a DOS floppy in drive 0
169 on a DOS floppy in drive 1
178 must match their respective checksum or that field is zeroed.
183 or at least one checksum fails and
188 will prompt for new values on
190 and then write them back to the storage area.
196 will write the values in
198 back to the storage area.
205 convert tickets, authenticators, ticket requests, and password change request
206 structures into transmittable messages.
212 are used to convert them back.
214 is used for encrypting the message before transmission and decrypting
219 receives either a character array or an error string.
220 On error, it sets errstr and returns -1. If successful,
221 it returns the number of bytes received.
225 sends a ticket request message and then uses
227 to recieve an answer.
229 .B /sys/src/libauthsrv
238 Integer-valued functions return -1 on error.