[chord] retrieve data with no authentication

Ivan Santarelli ivan.santarelli at students.cefriel.it
Wed Jun 1 10:51:45 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I am having the same troubles doing a similar job :D
> 
>>	I want to use dhash to store some data pairs such as userid/ip
>>	and retrieve ip by userid. 

> 
> Unfortunately, NOAUTH blocks are not really used in our regular
> applications and so we don't know if they still work at all 

If you need, you can look at the following output. The data stored was a
simple IP address, without commas, blanks or special characters around
the string, just null terminated ('\0'):
10.10.10.10

After retrieval, a for cicle on each character of blk->data shows this
output:

- ---- ouput text starts here ----
## Char 1, ascii code 49
## Char 0, ascii code 48
## Char ., ascii code 46
## Char 1, ascii code 49
## Char 0, ascii code 48
## Char ., ascii code 46
## Char 1, ascii code 49
## Char 0, ascii code 48
## Char ., ascii code 46
## Char 1, ascii code 49
## Char 0, ascii code 48
## Char, ascii code 8
- ---- ouput text ends here ----

In particular, last character before the '\0' has code 8 (decimal),
which represents a backspace ('\b'); this is why the char seems hidden...

> 
> We do have an app that we are starting to work on that may find
> some use for these blocks so there is hope that we'll track down
> the problems "soon".
> 
> Sorry :-/
> 

Ok, don't worry!

I think that a simple workaround could be found using iscntrl(), which
recognizes control characters, hoping that only those characters are
appended...
I saw that the problem doesn't arise always... going to investigate
further...

Ivan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD4DBQFCncuBeoqcljMWsKoRAkGLAJiePVKHWXv32XQTNTrTVOpgJ/i6AJ49EmMs
qAbLaYMZeSum27tHjoph8g==
=LEqc
-----END PGP SIGNATURE-----



More information about the chord mailing list