HomeFreeBSD

Add support for doing upcalls to the rpctlscd daemon to the krpc client

Description

Add support for doing upcalls to the rpctlscd daemon to the krpc client
when TLS non-application data records are received.

This is similar to code added to the krpc server side. However, since
soreceive() is called in a socket upcall where it cannot sleep, the
code needed to get a thread that is in clnt_vc_call() to do the
upcall.
The ct_dontrcv boolean was changed to a 5 state variable to indicate
when/if an upcall is done.

This code hasn't really been tested, since I don't know how to get
TLS1.2 to put a non-application data record in the stream, except when
doing SSL_shutdown() (a close alert) and this is initiated by the
client when the socket is closing.

It should get tested when TLS1.3 is available.

Details

Provenance
rmacklemAuthored on
Parents
rS361100: Add fdrop()s to the rpctls syscall for the "fp" reference.
Branches
Unknown
Tags
Unknown