- psz_pem = config_GetPsz( p_intf, "http-intf-key" );
-
- p_tls = tls_ServerCreate( p_this, psz_cert, psz_pem );
- if ( p_tls == NULL )
- {
- msg_Err( p_intf, "TLS initialization error" );
- free( p_sys->psz_html_type );
- free( p_sys );
- return VLC_EGENERIC;
- }
-
- psz_pem = config_GetPsz( p_intf, "http-intf-ca" );
- if ( ( psz_pem != NULL) && tls_ServerAddCA( p_tls, psz_pem ) )
- {
- msg_Err( p_intf, "TLS CA error" );
- tls_ServerDelete( p_tls );
- free( p_sys->psz_html_type );
- free( p_sys );
- return VLC_EGENERIC;
- }
-
- psz_pem = config_GetPsz( p_intf, "http-intf-crl" );
- if ( ( psz_pem != NULL) && tls_ServerAddCRL( p_tls, psz_pem ) )
- {
- msg_Err( p_intf, "TLS CRL error" );
- tls_ServerDelete( p_tls );
- free( p_sys->psz_html_type );
- free( p_sys );
- return VLC_EGENERIC;
- }
+ psz_key = config_GetPsz( p_intf, "http-intf-key" );
+ psz_ca = config_GetPsz( p_intf, "http-intf-ca" );
+ psz_crl = config_GetPsz( p_intf, "http-intf-crl" );