search for: certificate_file_userprovid

Displaying 1 result from an estimated 1 matches for "certificate_file_userprovid".

2015 Jul 29
2
[PATCH] ssh: Add option to present certificates on command line
...FICATE_FILES); + + if (dir == NULL) /* no dir, filename is absolute */ + path = xstrdup(filename); + else + (void)xasprintf(&path, "%.100s%.100s", dir, filename); + + /* Avoid registering duplicates */ + for (i = 0; i < options->num_certificate_files; i++) { + if (options->certificate_file_userprovided[i] == userprovided && + strcmp(options->certificate_files[i], path) == 0) { + debug2("%s: ignoring duplicate key %s", __func__, path); + free(path); + return; + } + } + + options->certificate_file_userprovided[options->num_certificate_files] = + userprov...