nats-io / nats.c

A C client for NATS
Apache License 2.0
384 stars 134 forks source link

Support handshake_first #779

Closed johnweldon closed 1 month ago

johnweldon commented 1 month ago

Proposed change

The NATS Server supports a handshake_first option which configures TLS connections to begin the TLS negotiation immediately, rather than first issuing an INFO response to negotiate up to TLS.

The C client doesn't appear to support this option yet.

Use case

If the server is configured with handshake_first: true, the server will expect TLS connections to start with the TLS negotiation, but the C client code does not have an option to start TLS connections that way.

Contribution

No response