Merge pull request #3465 from libgit2/cmn/tls-register stream: allow registering a user-provided TLS constructor