var_SetString (srv, "tls-x509-key", key_path);
}
+ vlc_object_attach (srv, obj);
srv->p_module = module_need (srv, "tls server", NULL, false );
if (srv->p_module == NULL)
{
return NULL;
}
- vlc_object_attach (srv, obj);
msg_Dbg (srv, "TLS server plugin initialized");
return srv;
}
else
msg_Dbg (cl, "requested anonymous server");
+ vlc_object_attach (cl, obj);
cl->p_module = module_need (cl, "tls client", NULL, false );
if (cl->p_module == NULL)
{
if (val == 0)
{
msg_Dbg (cl, "TLS client session initialized");
- vlc_object_attach (cl, obj);
return cl;
}
msg_Err (cl, "TLS client session handshake error");