Uploaded image for project: 'Support'
  1. Support
  2. SUPPORT-270

DelegationSignerSubmitCommand with --cka_id option only works the first time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.10
    • Fix Version/s: None
    • Component/s: Enforcer
    • Labels:
      None
    • Environment:

      Source code

      Description

      I am not going to comment on adding a "command line"
      option in order to pass the cka_id to the command in the XML but the code modified the parsed XML so that the --cka_id is removed from the string and therefore you only get the --cka_id on the first run
      {{in ./enforcer/src/keystate/keystate_ds.c:
      {{156 pos = strstr(ds_command, " --cka_id");
      157 if (pos){
      158 cka = 1;
      159 *pos = '\0';
      160 rrstr[strlen(rrstr)-1] = '\0';
      161 pos = NULL;}}}}
      the strstr points to the ds_command so on subsequent vists the cka_id isn't seen.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            ca0 c a
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: