nats-io / nats.c

A C client for NATS
Apache License 2.0
388 stars 139 forks source link

Alternative TLS implementation using WinAPI Schannel #646

Open Kazmirchuk opened 1 year ago

Kazmirchuk commented 1 year ago

Hello, The current support TLS in nats.c based exclusively on OpenSSL has certain concerns on Windows, such as:

These drawbacks can be avoided if nats.c includes an alternative TLS implementation using Windows Schannel Security Service Provider - something like this example, I suppose. Git is a notable example of an application that supports both OpenSSL and Schannel backends.

I realize that this work might be far beyond your commitment, so I'm raising this enhancement issue to ask, whether you would accept a PR with this implementation.

Kazmirchuk commented 1 year ago

any opinion on this? btw I noticed support for Windows certificate store in the NATS roadmap as well