Lines Matching refs:idl
267 struct ssh_identitylist *idl = NULL; in ssh_fetch_identitylist() local
306 if ((idl = calloc(1, sizeof(*idl))) == NULL || in ssh_fetch_identitylist()
307 (idl->keys = calloc(num, sizeof(*idl->keys))) == NULL || in ssh_fetch_identitylist()
308 (idl->comments = calloc(num, sizeof(*idl->comments))) == NULL) { in ssh_fetch_identitylist()
313 if ((r = deserialise_identity2(msg, &(idl->keys[i]), in ssh_fetch_identitylist()
314 &(idl->comments[i]))) != 0) { in ssh_fetch_identitylist()
324 idl->nkeys = num; in ssh_fetch_identitylist()
325 *idlp = idl; in ssh_fetch_identitylist()
326 idl = NULL; in ssh_fetch_identitylist()
330 if (idl != NULL) in ssh_fetch_identitylist()
331 ssh_free_identitylist(idl); in ssh_fetch_identitylist()
336 ssh_free_identitylist(struct ssh_identitylist *idl) in ssh_free_identitylist() argument
340 if (idl == NULL) in ssh_free_identitylist()
342 for (i = 0; i < idl->nkeys; i++) { in ssh_free_identitylist()
343 if (idl->keys != NULL) in ssh_free_identitylist()
344 sshkey_free(idl->keys[i]); in ssh_free_identitylist()
345 if (idl->comments != NULL) in ssh_free_identitylist()
346 free(idl->comments[i]); in ssh_free_identitylist()
348 free(idl->keys); in ssh_free_identitylist()
349 free(idl->comments); in ssh_free_identitylist()
350 free(idl); in ssh_free_identitylist()