[41335] in Cypherpunks

home help back first fref pref prev next nref lref last post

Re: netscape 2 certification authorities

daemon@ATHENA.MIT.EDU (Jim Gillogly)
Thu Oct 12 20:29:49 1995

To: cypherpunks@toad.com (Cypherpunks Mailing List)
In-Reply-To: Your message of Thu, 12 Oct 95 18:46:08 -0400.
             <199510122246.SAA07849@homeport.org> 
From: Jim Gillogly <jim@acm.org>
Reply-To: jim@acm.org
Date: Thu, 12 Oct 95 17:16:17 PDT


> Adam Shostack <adam@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);

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

home help back first fref pref prev next nref lref last post