mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
new allocrpc interface
This commit is contained in:
parent
211073f16a
commit
2709e6e368
1 changed files with 1 additions and 6 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue