Changeset 2983

Show
Ignore:
Timestamp:
03/09/10 16:38:40 (6 months ago)
Author:
sion
Message:

Fix bug reported in ticket #108; key import.

Location:
trunk/OpenDNSSEC
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/OpenDNSSEC/NEWS

    r2949 r2983  
    1919* Zonefetch.xml now accepts hmac-md5, which is an alias for 
    2020  hmac-md5.sig-alg.reg.int. 
     21* Fix issue of importing keys into kasp leaving random strings in the  
     22  retire date. 
    2123 
    2224 
  • trunk/OpenDNSSEC/enforcer/ksm/ksm_import.c

    r2511 r2983  
    339339    StrAppend(&columns, "policy_id, HSMkey_id, securitymodule_id, size, algorithm, state, "); 
    340340    StrAppend(&columns, KsmKeywordStateValueToName(state)); 
    341     if (opt_time != NULL) { 
     341    if (opt_time[0] != '\0') { 
    342342        StrAppend(&columns, ", retire, fixedDate"); 
    343343    } 
     
    351351    DisAppendInt(&sql, state); 
    352352    DisAppendString(&sql, time); 
    353     if (opt_time != NULL) { 
     353    if (opt_time[0] != '\0') { 
    354354        DisAppendString(&sql, opt_time); 
    355355        DisAppendInt(&sql, 1); 
  • trunk/OpenDNSSEC/enforcer/utils/ksmutil.c

    r2898 r2983  
    23742374                    datetime.tm_hour, datetime.tm_min, datetime.tm_sec); 
    23752375        } 
     2376    } else { 
     2377        form_opt_time[0] = '\0'; 
    23762378    } 
    23772379