@@ -2625,8 +2625,12 @@ static void _parse_paths(xmlDocPtr doc,
26252625 configuration -> allowfile = (char * )xmlNodeListGetString (doc , node -> xmlChildrenNode , 1 );
26262626 } else if (xmlStrcmp (node -> name , XMLSTR ("tls-certificate" )) == 0 ||
26272627 xmlStrcmp (node -> name , XMLSTR ("ssl-certificate" )) == 0 ) {
2628+
2629+ __found_bad_tag (configuration , node , BTR_OBSOLETE , "Use a <tls-certificate> in <tls-context>." );
2630+
26282631 if (__check_node_impl (node , "generic" ) != 0 ) {
26292632 ICECAST_LOG_WARN ("Node %s uses unsupported implementation." , node -> name );
2633+ __found_bad_tag (configuration , node , BTR_INVALID , NULL );
26302634 continue ;
26312635 }
26322636
@@ -2635,8 +2639,12 @@ static void _parse_paths(xmlDocPtr doc,
26352639 configuration -> tls_context .cert_file = (char * )xmlNodeListGetString (doc , node -> xmlChildrenNode , 1 );
26362640 } else if (xmlStrcmp (node -> name , XMLSTR ("tls-allowed-ciphers" )) == 0 ||
26372641 xmlStrcmp (node -> name , XMLSTR ("ssl-allowed-ciphers" )) == 0 ) {
2642+
2643+ __found_bad_tag (configuration , node , BTR_OBSOLETE , "Use a <tls-allowed-cipherse> in <tls-context>." );
2644+
26382645 if (__check_node_impl (node , "openssl" ) != 0 ) {
26392646 ICECAST_LOG_WARN ("Node %s uses unsupported implementation." , node -> name );
2647+ __found_bad_tag (configuration , node , BTR_INVALID , NULL );
26402648 continue ;
26412649 }
26422650
@@ -2785,6 +2793,7 @@ static void _parse_tls_context(xmlDocPtr doc,
27852793 if (xmlStrcmp (node -> name , XMLSTR ("tls-certificate" )) == 0 ) {
27862794 if (__check_node_impl (node , "generic" ) != 0 ) {
27872795 ICECAST_LOG_WARN ("Node %s uses unsupported implementation." , node -> name );
2796+ __found_bad_tag (configuration , node , BTR_INVALID , NULL );
27882797 continue ;
27892798 }
27902799
@@ -2794,6 +2803,7 @@ static void _parse_tls_context(xmlDocPtr doc,
27942803 } else if (xmlStrcmp (node -> name , XMLSTR ("tls-key" )) == 0 ) {
27952804 if (__check_node_impl (node , "generic" ) != 0 ) {
27962805 ICECAST_LOG_WARN ("Node %s uses unsupported implementation." , node -> name );
2806+ __found_bad_tag (configuration , node , BTR_INVALID , NULL );
27972807 continue ;
27982808 }
27992809
@@ -2803,6 +2813,7 @@ static void _parse_tls_context(xmlDocPtr doc,
28032813 } else if (xmlStrcmp (node -> name , XMLSTR ("tls-allowed-ciphers" )) == 0 ) {
28042814 if (__check_node_impl (node , "openssl" ) != 0 ) {
28052815 ICECAST_LOG_WARN ("Node %s uses unsupported implementation." , node -> name );
2816+ __found_bad_tag (configuration , node , BTR_INVALID , NULL );
28062817 continue ;
28072818 }
28082819
0 commit comments