Friendica
daniel:// stenberg://
daniel:// stenberg://

daniel:// stenberg://

bagder@mastodon.social

daniel:// stenberg://

bagder@mastodon.social
I write curl. I don't know anything.
ActivityPub
2024-02-10 16:09:47 2024-02-09 15:02:37 2024-02-09 15:02:35 4503288

daniel:// stenberg://
daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

1 year ago • •

daniel:// stenberg://

1 year ago • •


Starting now, #curl's configure will warn you if you build it with a TLS library that does not support TLS 1.3

github.com/curl/curl/pull/1290…


configure: add warning for using TLS libraries without 1.3 support by bagder · Pull Request #12900 · curl/curl

BearSSL, mbedTLS and Secure Transport
GitHub
#curl
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •
Secure Transport doesn’t support TLS 1.3 yet??? Shame on Apple!
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Demi Marie Obenour

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Demi Marie Obenour • 1 year ago • •
@alwayscurious they have deprecated that entire thing and want users to use their "network framework" (or something like that)
@Demi Marie Obenour
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •

Ugh, so they want people to not use BSD sockets at all, and instead use the Network.framework API.

Is it safe to say that porting curl to use anything but BSD sockets would be extremely hard?

  •  Languages
  •  Search Text
  •  Share via ...
in reply to Demi Marie Obenour

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Demi Marie Obenour • 1 year ago • •
@alwayscurious I have not investigated this, but yes we need sockets so if they don't use that, we would have to add some kind of transition layer for that
@Demi Marie Obenour
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •
I don’t think there is one. The recommendation is to not use the BSD sockets API at all. That would mean having libcurl call into Network.framework for everything, and use Apple-specific event loop APIs.
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Demi Marie Obenour

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Demi Marie Obenour • 1 year ago • •
@alwayscurious sounds... icky!
@Demi Marie Obenour
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •
I mean such is life on proprietary platforms. You use what the vendor provides.
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •
On watchOS, BSD sockets don’t even exist.
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Demi Marie Obenour

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Demi Marie Obenour • 1 year ago • •
@alwayscurious well, then either there will be no curl there or someone would do some really weird hack to make it work...!
@Demi Marie Obenour
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •
I mean Microsoft reimplemented libcurl on top of WinHTTP for Xbox.
This entry was edited (1 year ago)
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Demi Marie Obenour

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Demi Marie Obenour • 1 year ago • •
@alwayscurious but really they did not. It was a half-baked job that basically did not care for the powerful parts of the API... Probably because that part exposes and works with... sockets.
@Demi Marie Obenour
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •
which APIs specifically? curl_multi_socket_action()?
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Demi Marie Obenour

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Demi Marie Obenour • 1 year ago • •
@alwayscurious yes, and the regular multi API also uses and exposes sockets
@Demi Marie Obenour
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Demi Marie Obenour
mastodon - Link to source

Demi Marie Obenour

in reply to daniel:// stenberg:// • 1 year ago • •

I don’t think sockets are the future of networking for a few reasons:

  • They mostly assume that the network stack is in the kernel, but some platforms (iOS, watchOS) are moving it into userspace.
  • They have fundamental performance limits. On Linux the most efficient networking API is io_uring, not BSD sockets.
  •  Languages
  •  Search Text
  •  Share via ...
in reply to Demi Marie Obenour

daniel:// stenberg://
mastodon - Link to source

daniel:// stenberg://

in reply to Demi Marie Obenour • 1 year ago • •
@alwayscurious perhaps not, but still today they remain as the only cross-platform networking API. It'll take a while until they are gone.
@Demi Marie Obenour
  •  Languages
  •  Search Text
  •  Share via ...
in reply to daniel:// stenberg://

Peter Kovář
mastodon - Link to source

Peter Kovář

in reply to daniel:// stenberg:// • 1 year ago • •
C001!
  •  Languages
  •  Search Text
  •  Share via ...
⇧