mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +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*
|
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";
|
||||||
|
|
Loading…
Reference in a new issue