[xmlsec] xmlSecIORegisterCallbacks problems

Aleksey Sanin aleksey@aleksey.com
Sat, 07 Jun 2003 12:56:16 -0700


This is a multi-part message in MIME format.
--------------060509080009070306010401
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Good! Glad that it was so simple :)

Aleksey

Asbjørn Oskal wrote:

> Hi!
>  
> Thank you for your answer.
> I found out myself and it was just what you said.
> The HTTP and FTP URI handlers are no problem if you don't want to
> handle ftp:// and http:// uris yourself.
> The problem was actually the file URI handler. The match function 
> always returned
> true, blocking any other callbacks later in the list. What I did was 
> to cleanup all callbacks before adding my callbacks.
> Then I added the default callbacks. This way my match method is called 
> before the other.
>  
> :)
>  
>
>

--------------060509080009070306010401
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body>
Good! Glad that it was so simple :)<br>
<br>
Aleksey<br>
<br>
Asbj&oslash;rn Oskal wrote:<br>
<blockquote type="cite" cite="mid000c01c32d17$4023eda0$72a94382@oskal">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <meta content="MSHTML 5.50.4134.100" name="GENERATOR">
  <style></style>
  <div><font face="Courier">Hi!</font></div>
  <div>&nbsp;</div>
  <div><font face="Courier">Thank you for your answer.</font></div>
  <div><font face="Courier">I found out myself and it was just what you
said.</font></div>
  <div><font face="Courier">The HTTP and FTP URI handlers are no
problem&nbsp;if you don't want to</font></div>
  <div><font face="Courier">handle <a class="moz-txt-link-freetext" href="ftp://">ftp://</a> and <a class="moz-txt-link-freetext" href="http://">http://</a> uris yourself.</font></div>
  <div><font face="Courier">The problem was actually the file URI
handler. The match function always returned</font></div>
  <div><font face="Courier">true,&nbsp;blocking any other callbacks later in
the list. What I did was to cleanup all callbacks before </font><font
 face="Courier">adding my callbacks. </font></div>
  <div><font face="Courier">Then I added the default callbacks. This
way my match&nbsp;</font><font face="Courier">method is called before the
other</font><font face="Courier">.</font></div>
  <div>&nbsp;</div>
  <div><font face="Courier">:)</font></div>
  <div>&nbsp;</div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><br>
  </blockquote>
</blockquote>
</body>
</html>

--------------060509080009070306010401--