Update Geary.Endpoint API and source

Use a generic GSocketConnectable to specify the remote endpoint,
simplify TLS cert management callbacks.
This commit is contained in:
Michael Gratton 2018-12-27 16:27:26 +11:00 committed by Michael James Gratton
parent 3c89a2fb23
commit 19d2fdfcbc
8 changed files with 160 additions and 137 deletions

View file

@ -70,12 +70,22 @@ public class Geary.MockAccount : Account, MockObject {
new MockClientService(
config,
config.incoming,
new Endpoint(config.incoming.host, config.incoming.port, 0, 0)
new Endpoint(
new GLib.NetworkAddress(
config.incoming.host, config.incoming.port
),
0, 0
)
),
new MockClientService(
config,
config.outgoing,
new Endpoint(config.outgoing.host, config.outgoing.port, 0, 0)
new Endpoint(
new GLib.NetworkAddress(
config.outgoing.host, config.outgoing.port
),
0, 0
)
)
);
}