include "keyring.m"; include "security.m"; login := load Login Login->PATH; login: fn(name, password, addr: string): (string, ref Keyring->Authinfo);
Login connects, using sys-dial(2), to the signer at network address addr, which is any form accepted by cs(8), including the special address $SIGNER, which cs will translate to the client's default signer (if there is one). Normally the incoming call will be given to logind(8) by svc(8).
Login sends the user name and password, using the protocol described in login(6), to justify the server's issuing a certificate, which is returned in a Keyring->Authinfo adt on success. The certificate can if desired be stored by Keyring->writeauthinfo; see keyring-auth(2). The password is used by the encrypted key exchange protocol to establish a secure channel between user and CA.
SECURITY-LOGIN(2 ) | Rev: Thu Feb 15 14:43:27 GMT 2007 |