~henrik-ziegeldorf/hipl/pisa

Viewing all changes in revision 6029.

  • Committer: Henrik Ziegeldorf
  • Date: 2011-12-12 13:53:49 UTC
  • Revision ID: henrik.ziegeldorf@rwth-aachen.de-20111212135349-07px4cry8gtgkynn
Fix by Christoph Viethen.

Show stopper:
 - variable "algo" didn't get set to anything any more (staying at pre-initialized value 0), causing the code not to generate signatures

Misc. changes:
 - initialize issuer_hit var with NUL bytes so it becomes possible to detect whether "issuerhit" is specified in the hip_cert.cnf file
 - if "issuerhit" is not specified in that config file, use this hipd's default hit instead (should typically be the same anyway)

 - don't fail when section "[ hip_x509v3_name ]" doesn't exist in hip_cert.cnf file - contents of this section doesn't seem to be used for anything at all

 - workaround: catch the case of "days =" not being specified in config - assume ~10 seconds default cert. validity instead (prevents generation of a broken certificate with identical start and end times) (can't just force the user to specify the value in the config, because an end time might have been specified through hipconf, in which case the config value wouldn't even be needed)

Cosmetics:
 - replace /*   */ with // comments in some of the places
 - replace occurences of hip_local_hostid_db with HIP_DB_LOCAL_HID (see #define in hipd/hidb.h)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: