>> I know what mapfiles look like in text format, and I'm also not 
>sure
>> where or how the metadata object stores the corresponding CHK 
>for each
>> entry. There's a way to get a DocumentCommand object to fetch 
>or put
>> each of the things in the mapfile, but you can't even get a CHK 
>out of
>> that.  How does one find that CHK through the Mapfile object?
>> 
>what CHK?  DocumentCommands aren't guaranteed to be redirects to 
>CHKs.

I know they're not guaranteed to be CHKs.  Let me try to state what
I'm talking about in another way.  Here's a sample piece of a mapfile
in text form:

Document
Name=mini-howto/ZIP-Install.txt
Info.Format=text/plain
Redirect.Target=freenet:CHK at 
j4S3yevIIv9kuLh4lHNek7kSzeYQAwI,vyHX-Tjboh1XEtVb-gaO
PQ
EndPart
Document
Name=mini-howto/ZIP-Drive.txt
Info.Format=text/plain
Redirect.Target=freenet:CHK at 
0Hcq41Mh5exqGDDPLSnOjyCHzfIQAwI,NcLqR76qJ~1lzywoES3K
iQ
EndPart

(This comes from fcpget -r -v 3)

The idea is that the mapfile is composed of a series of "document"
entries that have names (accessible through 
metadataobj.getDocumentNames()) they have format/MIME types, and they
have redirect targets which can be CHKs, SSKs, or KSKs.

The question is how do I get to the redirect information?  I know about
DocumentCommand objects, but are you saying that the only way you can
get information about a document is by getting its DocumentCommand 
object and executing it through, finally asking that object what it's
final key was, or isn't there a much more simple way of finding out
what redirect key is associated with a given document name inside one
of these control part metadata segments?

(Sorry for the evil formatting - writing mail in hushmail is like 
editing text in a broken version of notepad.exe with half the 
functionality)

-- Cruft



Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2 

Big $$$ to be made with the HushMail Affiliate Program: 
https://www.hushmail.com/about.php?subloc=affiliate&l=427

_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to