First NTS code

Eric S. Raymond esr at thyrsus.com
Mon Jan 28 13:59:32 UTC 2019


Hal Murray <hmurray at megapathdsl.net>:
> 
> esr at thyrsus.com said:
> >> Do we want to store cookies and passwords and such in a fixed max-size 
> array
> >> or as heap allocated blobs?  In any case, we need to remember the lengths.
> 
> > Depends - if they're textual we can assume a '\0' sentinel.  I'd prefer to do
> > that if possible, it would minimize the amount of data items to manage and
> > thus potential defects. 
> 
> They are mostly binary blobs: cookies, keys, nonces, ...
> It might be worth packaging blob and length into a struct.

OK.  That's inside-NTS work - do as you like there. I need to concentrate
elsewhere for a bit.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.




More information about the devel mailing list