Add x509:setencode() function to change the encode of ASN.1 string.
Merge branch 'master' of https://github.com/brunoos/luasec
Examples update.
Version number -> 0.5.
 Add method for extracting public key, type and size from x509 objects
Check that certificate matches private key
Check if private key matches cert only if both key and cert are set
Wrong type.
Add cert:pubkey() to methods registry
Merge pull request #19 from Zash/zash/pubkey

Zash/pubkey
Merge pull request #17 from Zash/zash/checkkey

Verify that certificate and key belong together
SNI support.
SNI support.
- Add a parameter to server:sni(), so that we can accept an unknown name, using the initial context.
- Add the method :getsniname() to retrieve the SNI hostname used.
Problem on Win64, since double does not represent SOCKET_INVALID exactly.