netscape 2 certification authorities

Jim Gillogly jim at acm.org
Thu Oct 12 17:16:30 PDT 1995



> Adam Shostack <adam at lighthouse.homeport.org> 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);

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






More information about the cypherpunks-legacy mailing list