Use the encode function to encode the secure renegotiation extension.
Use the encode function to encode the secure renegotiation extension.

fix a bug on the client side when secure renegotiation is enabled on client and server.

beni55/hs-tls,tolysz/hs-tls,erikd/hs-tls,beni55/hs-tls,AaronFriel/hs-tls,lancelotsix/hs-tls,AaronFriel/hs-tls,lancelotsix/hs-tls,erikd/hs-tls,tolysz/hs-tls