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* static AuthRpc*
factotum_rsa_open(uchar *cert, int certlen) factotum_rsa_open(uchar *cert, int certlen)
{ {
int afd;
char *s; char *s;
mpint *pub = nil; mpint *pub = nil;
RSApub *rsapub; RSApub *rsapub;
AuthRpc *rpc; AuthRpc *rpc;
// start talking to factotum if((rpc = auth_allocrpc()) == nil){
if((afd = open("/mnt/factotum/rpc", ORDWR)) < 0)
return nil;
if((rpc = auth_allocrpc(afd)) == nil){
close(afd);
return nil; return nil;
} }
s = "proto=rsa service=tls role=client"; s = "proto=rsa service=tls role=client";