If MariaDB Connector/C encounters an unknown Schannel error, then it currently prints a message like this:
It does this here:
This is not very user friendly. It would probably be better if it could print the textual error message instead.
The windows API has the FormatMessage function that can be used to get the textual error message from the error code.
For an example, see this: