hoaproject / Websocket

The Hoa\Websocket library.
https://hoa-project.net/
423 stars 75 forks source link

Handshake EnableEncryption #78

Closed Pierozi closed 8 years ago

Pierozi commented 8 years ago

Set encryption if TLS mode enable.

Address to #77

shulard commented 8 years ago

Hello,

Is it possible that the connection encryption had been enable before the doHandshake call ?

Because if it's true, we must check that encryption is not already enabled before enabling with ENCRYPTION_TLS.

Pierozi commented 8 years ago

Yup good catch @shulard, heven if handshake must be the first

Hywan commented 8 years ago

@Pierozi What's the next step?