1 --- Transport Layer Security Context Object.
3 module "nixio.TLSContext"
5 --- Create a TLS Socket from a socket descriptor.
7 -- @name TLSContext.create
8 -- @param socket Socket Object
9 -- @return TLSSocket Object
11 --- Assign a PEM certificate to this context.
13 -- @name TLSContext.set_cert
14 -- @usage This function calls SSL_CTX_use_certificate_chain_file().
15 -- @param path Certificate File path
18 --- Assign a PEM private key to this context.
20 -- @name TLSContext.set_key
21 -- @usage This function calls SSL_CTX_use_PrivateKey_file().
22 -- @param path Private Key File path
25 --- Set the available ciphers for this context.
27 -- @name TLSContext.set_ciphers
28 -- @usage This function calls SSL_CTX_set_cipher_list().
29 -- @param cipherlist String containing a list of ciphers
32 --- Set the verification depth of this context.
34 -- @name TLSContext.set_verify_depth
35 -- @usage This function calls SSL_CTX_set_verify_depth().
39 --- Set the verification flags of this context.
41 -- @name TLSContext.set_verify
42 -- @usage This function calls SSL_CTX_set_verify().
43 -- @param flag1 First Flag ["none", "peer", "verify_fail_if_no_peer_cert",
45 -- @param ... More Flags [-"-]