version 1.167, 2002/03/25 17:34:27 |
version 1.168, 2002/03/25 21:04:02 |
|
|
int count = 0; |
int count = 0; |
for (i = 0; keys[i] != NULL; i++) { |
for (i = 0; keys[i] != NULL; i++) { |
count++; |
count++; |
if (options.num_identity_files + 1 > SSH_MAX_IDENTITY_FILES) |
|
options.num_identity_files = SSH_MAX_IDENTITY_FILES - 1; |
|
memmove(&options.identity_files[1], &options.identity_files[0], |
memmove(&options.identity_files[1], &options.identity_files[0], |
sizeof(char *) * (SSH_MAX_IDENTITY_FILES - 1)); |
sizeof(char *) * (SSH_MAX_IDENTITY_FILES - 1)); |
memmove(&options.identity_keys[1], &options.identity_keys[0], |
memmove(&options.identity_keys[1], &options.identity_keys[0], |
|
|
options.identity_keys[0] = keys[i]; |
options.identity_keys[0] = keys[i]; |
options.identity_files[0] = xstrdup("smartcard key");; |
options.identity_files[0] = xstrdup("smartcard key");; |
} |
} |
|
if (options.num_identity_files > SSH_MAX_IDENTITY_FILES) |
|
options.num_identity_files = SSH_MAX_IDENTITY_FILES; |
i = count; |
i = count; |
xfree(keys); |
xfree(keys); |
} |
} |