some initial cleanup for PEM
by Kai Engert
I commited a few changes:
https://git.fedorahosted.org/cgit/nss-pem.git/commit/?id=cf9834b1ccc3ed6a...
All changes have passed all the tests that I have. Local testing with
curl/pem/selfserv, and inhouse PEM regression tests.
If you want to give this more testing or review, I'll appreciate it.
- address some cleanup requests from rrelyea
- parts of the cleanup and comments are taken from emaldona's patches
- #if 0 some unused code (will remove later)
- actually use the loop variable i in pem_Initialize
- allocator consistency
- simplify/cleanup PUT_OBJECT/put_object code (fixes an incorrect
assumption,
allocation is based on number of items, not bytes)
- fix a crash with plog in debug mode
- in CreateObject with CKO_PRIVATE_KEY, don't reset
the nickname back to filename contents, seems wrong
Kai
9 years, 9 months