new allocrpc interface

This commit is contained in:
rsc 2005-02-11 16:44:33 +00:00
parent 211073f16a
commit 2709e6e368

View file

@ -1586,17 +1586,12 @@ makeciphers(void)
static AuthRpc*
factotum_rsa_open(uchar *cert, int certlen)
{
int afd;
char *s;
mpint *pub = nil;
RSApub *rsapub;
AuthRpc *rpc;
// start talking to factotum
if((afd = open("/mnt/factotum/rpc", ORDWR)) < 0)
return nil;
if((rpc = auth_allocrpc(afd)) == nil){
close(afd);
if((rpc = auth_allocrpc()) == nil){
return nil;
}
s = "proto=rsa service=tls role=client";