2.36 <GTlsServerConnection>

Interface: <GTlsServerConnection>

<GTlsServerConnection> is the server-side subclass of <GTlsConnection>, representing a server-side TLS connection.

Properties

Property: tls-server-connection:authentication-mode self

The <GTlsAuthenticationMode> for the server. This can be changed before calling tls-connection:handshake? if you want to rehandshake with a different mode from the initial handshake.

Its value is a <GTlsAuthenticationMode> (or, to set it, one of its symbols).

Set it with (set! (tls-server-connection:authentication-mode self) value).

Procedures

Procedure: tls-server-connection:new base-io-stream [certificate] ⇒ %return

Creates a new <GTlsServerConnection> wrapping base-io-stream (which must have pollable input and output streams).

See the documentation for tls-connection:base-io-stream for restrictions on when application code can run operations on the base-io-stream after this function has returned.

base-io-stream

Passed: a <GIOStream>.

the <GIOStream> to wrap

certificate

Passed, or left out: a <GTlsCertificate>, or #f.

the default server certificate, or #f

%return

Returned: a <GTlsServerConnection>.

the new <GTlsServerConnection>, or #f on error