{"id":249,"date":"2010-09-29T13:27:39","date_gmt":"2010-09-29T12:27:39","guid":{"rendered":"http:\/\/lendl.priv.at\/blog\/?p=249"},"modified":"2026-01-26T12:13:51","modified_gmt":"2026-01-26T11:13:51","slug":"rfc-5105-enumat-client-toolkit-and-xerces-3","status":"publish","type":"post","link":"https:\/\/lendl.priv.at\/blog\/2010\/09\/29\/rfc-5105-enumat-client-toolkit-and-xerces-3\/","title":{"rendered":"RFC 5105, enum.at Client Toolkit and Xerces 3"},"content":{"rendered":"<p>I recently got a request for help concerning the generation of ENUM Validation Tokens according to RFC 5105.<\/p>\n<p>In order to check what went wrong, I had to re-install the software I used while writing that RFC. That wasn&#8217;t so easy as the upgrade from Xerces 2 to Xerces 3 made a few changes to the XML Signing module necessary:<\/p>\n<p><!--more--><\/p>\n<p>&#8212; xs\/XSEC.xs     2007-05-03 15:07:48.000000000 +0200<br \/>\n+++ xs\/XSEC.xs     2010-09-29 14:18:13.197703784 +0200<br \/>\n@@ -156,7 +156,7 @@<br \/>\n             return XSIGN_FAIL_PRIVKEYREAD;<br \/>\n         }<\/p>\n<p>&#8211;        if (!stricmp(type, &#8220;dsa&#8221;)) {<br \/>\n+        if (!strcasecmp(type, &#8220;dsa&#8221;)) {<br \/>\n             \/\/ Check type is correct<br \/>\n             if (pkey->type != EVP_PKEY_DSA) {<br \/>\n                 STRINIT(error, &#8220;DSA Key requested, but OpenSSL loaded something else&#8221;);<br \/>\n@@ -355,12 +355,15 @@<br \/>\n         XMLCh tempStr[100];<br \/>\n         XMLString::transcode(&#8220;LS&#8221;, tempStr, 99);<br \/>\n         DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(tempStr);<br \/>\n&#8211;        DOMWriter *serializer = ((DOMImplementationLS*)impl)->createDOMWriter();<br \/>\n+        DOMLSSerializer *serializer = ((DOMImplementationLS*)impl)->createLSSerializer();<\/p>\n<p>         XMLFormatTarget *fTarget = new MemBufFormatTarget;<\/p>\n<p>+        DOMLSOutput* theOutput = ((DOMImplementationLS*)impl)->createLSOutput();<br \/>\n+        theOutput->setByteStream(fTarget);<br \/>\n+<br \/>\n         try {<br \/>\n&#8211;            serializer->writeNode(fTarget, *doc);<br \/>\n+            serializer->write(doc, theOutput);<br \/>\n         }<br \/>\n         catch (const XMLException&#038; e) {<br \/>\n                STRINIT(error, &#8220;DOMWriter XMLException: &#8220;);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently got a request for help concerning the generation of ENUM Validation Tokens according to RFC 5105. In order to check what went wrong, I had to re-install the software I used while writing that RFC. That wasn&#8217;t so easy as the upgrade from Xerces 2 to Xerces 3 made a few changes to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-system-administration"],"_links":{"self":[{"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":1,"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":911,"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/posts\/249\/revisions\/911"}],"wp:attachment":[{"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lendl.priv.at\/blog\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}