Tilde Friends
TLS Interface

Typedefs

typedef struct _tf_tls_context_t tf_tls_context_t
 

Functions

JSValue tf_tls_context_register (JSContext *context)
 
tf_tls_context_ttf_tls_context_get (JSValue value)
 
int tf_tls_context_get_count ()
 

Detailed Description

Exposes TLS to JS.

Typedef Documentation

◆ tf_tls_context_t

typedef struct _tf_tls_context_t tf_tls_context_t

A TLS context instance.

Function Documentation

◆ tf_tls_context_get()

tf_tls_context_t * tf_tls_context_get ( JSValue  value)

Get a TLS context instance from its JS object.

Parameters
valueA TlsContext JS object.
Returns
The corresponding instance.

◆ tf_tls_context_get_count()

int tf_tls_context_get_count ( )

Get the number of active TLS context instances.

Returns
The number of TlsContext objects created that have not been finalized.

◆ tf_tls_context_register()

JSValue tf_tls_context_register ( JSContext context)

Register TLS script interface.

Parameters
contextThe TLS context.
Returns
the TlsContext constructor.