diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2015-04-29 17:44:33 +0100 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2015-04-29 17:44:33 +0100 |
| commit | fbc1184c08d18d5ac0f8763a058e015e95353341 (patch) | |
| tree | f045cdfaaf13c35295d34cb0c2ffd7f4cf2ef30d /appl/lib/registries.b | |
| parent | 83eae27259078c96c074211a51bf38c774490544 (diff) | |
switch to Dial module
Diffstat (limited to 'appl/lib/registries.b')
| -rw-r--r-- | appl/lib/registries.b | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/appl/lib/registries.b b/appl/lib/registries.b index 2feb83e3..34c2c5d0 100644 --- a/appl/lib/registries.b +++ b/appl/lib/registries.b @@ -9,6 +9,8 @@ include "string.m"; str: String; include "keyring.m"; keyring: Keyring; +include "dial.m"; + dial: Dial; include "security.m"; auth: Auth; include "keyset.m"; @@ -22,6 +24,7 @@ init() keyring = checkload(load Keyring Keyring->PATH, Keyring->PATH); str = checkload(load String String->PATH, String->PATH); keyset = checkload(load Keyset Keyset->PATH, Keyset->PATH); + dial = checkload(load Dial Dial->PATH, Dial->PATH); auth = checkload(load Auth Auth->PATH, Auth->PATH); e := keyset->init(); if(e != nil) @@ -208,8 +211,8 @@ Service.attach(svc: self ref Service, localuser, keydir: string): ref Attached # auth.crypt type of encryption to push (as accepted by ssl(3)'s "alg" operation) # auth.signer hash of service's certificate's signer's public key - (ok, c) := sys->dial(svc.addr, nil); - if(ok == -1){ + c := dial->dial(svc.addr, nil); + if(c == nil){ sys->werrstr(sys->sprint("cannot dial: %r")); return nil; } |
