From a1ca3e2ccde676f11d981872f49dd20b9f8abf4f Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Fri, 4 Nov 2022 16:07:33 +0100 Subject: [PATCH] Stop doing initial data that way, it's a bad idea D:< --- main.capnp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.capnp b/main.capnp index ef47202..82f4588 100644 --- a/main.capnp +++ b/main.capnp @@ -27,12 +27,11 @@ interface Bootstrap mechanisms @2 () -> ( mechs :List(Text) ); # Get a list of Mechanisms this server allows in this context. - createSession @3 ( mechanism :Text, initialData :Data ) - -> ( authentication :Authentication ); + createSession @3 ( mechanism :Text ) -> ( authentication :Authentication ); # Create a new session with the server that you wish to authenticate using `mechanism`. If the - # mechanism is a client-first mechanism you MAY set `initialData` to contain the data you want - # to send. If the mechanism is server-first or you do not wish to send initial data, make - # initialData a NULL-pointer. + # mechanism is a client-first mechanism you can then immediately call Authentication::step with + # initial data in a pipelined fashion. If the mechanism is server-first you must call + # Authentication::step with a NULL `data` parameter. } struct Session {