[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netscape 2 certification authorities




> Adam Shostack <[email protected]> writes:
> The new betas of Netscape store CA trust stuff in a NDBM
> database.  Does anyone have good tools for looking at NDBM stuff?

Perl's my favorite.  Here's a code fragment that might help.  All you
need to do is open the ndbm file (foo.pag/foo.dir in this case) and aim it
at an associative array, then have your way with it.

	Jim Gillogly
	Sterday, 22 Winterfilth S.R. 1995, 00:14
----------------------------------------------------------------------------
#!/usr/bin/perl

dbmopen(%baz, "foo", 0600);

# At this point just access %count the way you would any other assoc array
# For example, to list it all:

while (($key, $value) = each %baz)
{
	printf "Key $key, value $value\n";
}

dbmclose(baz);

----------------------------------------------------------------------------