Make implanting extracted certificates work again.

This hasn't worked in a while, and the space calculation changes in
77d334d77 really didn't work with it.  Rework that to be a little more
sane.

Signed-off-by: Peter Jones <pjones@redhat.com>
Bump version to 0.100

Signed-off-by: Peter Jones <pjones@redhat.com>
Fix a casting problem on 32-bit.

Not that we really care about i686, but...

Signed-off-by: Peter Jones <pjones@redhat.com>
Allow the user to specify the NSS database directory.

Signed-off-by: Peter Jones <pjones@redhat.com>
Re-organize the option list a bit.

Organize it by type of thing and what it's related to, rather than
randomly.

Signed-off-by: Peter Jones <pjones@redhat.com>
Get rid of privkey output and cert output.

Part of moving to just directly adding it to the NSS database.

Signed-off-by: Peter Jones <pjones@redhat.com>
[efikeygen] Don't add a url if one isn't specified.

Signed-off-by: Peter Jones <pjones@redhat.com>
Add library function to find the slot to use for a token.

Is it picking the best slot?  I've got no idea.  Most often will be used
for a temporary database with only one token anyway, so until we find a
reason to change it, this is probably fine.

Signed-off-by: Peter Jones <pjones@redhat.com>
Make generate_keys() take the slot to use as part of its input.

Signed-off-by: Peter Jones <pjones@redhat.com>
Import generate cert and keys into the nss database we're using.

Signed-off-by: Peter Jones <pjones@redhat.com>
Update copyright notices for 2013 (for files changed today...)

Signed-off-by: Peter Jones <pjones@redhat.com>
Add man page for efikeygen, and make both be installed with "make install".

Signed-off-by: Peter Jones <pjones@redhat.com>