You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Finish an unsubscribe when the unsubscribed confirmation has no seq. The confirmation was
dropped as malformed, so the subscription never ended and a new orderbook_delta
subscription was refused until the next reconnect.
Load a key from a FIFO or pipe when a signal interrupts Signer::from_pem_file while it waits
for a writer to open the other end. Only an interrupted read was retried before.
Keep the key file's descriptor out of child processes started while Signer::from_pem_file
reads it.
Leave libwebsockets' WebSocket trust store alone when it uses GnuTLS, Schannel, BearSSL,
OpenHiTLS, PolarSSL, or CyaSSL for TLS. The SDK would have passed their TLS contexts to
OpenSSL, corrupting memory.
HttpClient::request returns InvalidRequest, without sending anything, for a base URL
with no host once its user information and port are removed, such as https://:443/trade-api/v2. It returned NetworkError.
HttpClient::request returns InvalidRequest, without sending anything, when the base URL or
the request path has a . or .. segment, %2e included. libcurl removed those segments
before sending, so the request was signed over a path the server never received
(#95).
Sign each REST request over the path libcurl actually sends. libcurl rewrites some paths
while parsing them, and each version differently: 8.22, which vcpkg ships for Windows,
uppercases percent escapes, so a path such as /markets/a%2fb failed authentication.
Changed
Signer::from_pem_file reads with the operating system's file calls instead of C stdio, so
no stream buffer outside its own, which it wipes, can hold key bytes.
CMake warns when libwebsockets' CMake package links a different OpenSSL from the one found
for kalshi-cpp. Both must be the same, because the SDK calls OpenSSL on libwebsockets' TLS
connections. The README's macOS steps now build against the OpenSSL that Homebrew's
libwebsockets links.
kalshi-cpp needs libcurl 7.65 or newer.
A base URL and request path that libcurl cannot parse return InvalidRequest, without
sending anything, instead of NetworkError.