-rw-r--r-- | lib/discovery.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/discovery.cc b/lib/discovery.cc index bd1f917..cbdceb3 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc | |||
@@ -280,12 +280,13 @@ namespace opkele { | |||
280 | } | 280 | } |
281 | 281 | ||
282 | void prepare_to_parse() { | 282 | void prepare_to_parse() { |
283 | (*(expat_t*)this) = parser_create_ns(); | 283 | (*(expat_t*)this) = parser_create_ns(); |
284 | set_user_data(); set_element_handler(); | 284 | set_user_data(); set_element_handler(); |
285 | set_character_data_handler(); | 285 | set_character_data_handler(); |
286 | set_unknown_encoding_handler(); | ||
286 | 287 | ||
287 | if(xmode&xmode_html) { | 288 | if(xmode&xmode_html) { |
288 | html_openid1.clear(); html_openid2.clear(); | 289 | html_openid1.clear(); html_openid2.clear(); |
289 | parser_choked = false; | 290 | parser_choked = false; |
290 | } | 291 | } |
291 | 292 | ||
@@ -566,12 +567,19 @@ namespace opkele { | |||
566 | } | 567 | } |
567 | } | 568 | } |
568 | } | 569 | } |
569 | } | 570 | } |
570 | } | 571 | } |
571 | 572 | ||
573 | int unknown_encoding(const XML_Char *n,XML_Encoding *i) { | ||
574 | for(int ii=0;ii < sizeof(i->map)/sizeof(i->map[0]);++ii) | ||
575 | i->map[ii] = ii; | ||
576 | i->convert = 0; i->release = 0; | ||
577 | return XML_STATUS_OK; | ||
578 | } | ||
579 | |||
572 | }; | 580 | }; |
573 | 581 | ||
574 | string idiscover(endpoint_discovery_iterator oi,const string& identity) { | 582 | string idiscover(endpoint_discovery_iterator oi,const string& identity) { |
575 | idigger_t idigger; | 583 | idigger_t idigger; |
576 | return idigger.discover(oi,identity); | 584 | return idigger.discover(oi,identity); |
577 | } | 585 | } |