hhvm / hsl-experimental

Experimental features for the Hack Standard Library
MIT License
23 stars 10 forks source link

[Network] Secure socket support ? #102

Open azjezz opened 4 years ago

azjezz commented 4 years ago

any plans to add TLS support to Network ?

$server = await TCP\Server::createAsync(...);
$server = new Network\SecureServer($server, $options);
fredemmott commented 4 years ago

Yep, definitely. Unclear if it'll be wrappers like that, or something else.

Likely won't be done before HSL IO has a new native implementation.

fredemmott commented 4 years ago

Now that native TCP is almost done, I've reached to FB's crypto people about the best way to go about doing this.

The 'obvious' way is to expose new FD-based bindings to (open|libre|boring)ssl, not sure if that's actually best practice nowadays.