Lines Matching refs:pub

352 	struct sshkey *pub = NULL;  in sshkey_load_public()  local
382 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL) in sshkey_load_public()
384 if ((r = sshkey_try_load_public(pub, filename, commentp)) == 0) { in sshkey_load_public()
386 *keyp = pub; in sshkey_load_public()
389 sshkey_free(pub); in sshkey_load_public()
393 if ((pub = sshkey_new(KEY_RSA1)) == NULL) in sshkey_load_public()
395 if ((r = sshkey_try_load_public(pub, filename, commentp)) == 0) { in sshkey_load_public()
397 *keyp = pub; in sshkey_load_public()
400 sshkey_free(pub); in sshkey_load_public()
405 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL) in sshkey_load_public()
410 (r = sshkey_try_load_public(pub, file, commentp)) == 0) { in sshkey_load_public()
412 *keyp = pub; in sshkey_load_public()
415 sshkey_free(pub); in sshkey_load_public()
424 struct sshkey *pub = NULL; in sshkey_load_cert() local
434 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL) { in sshkey_load_cert()
437 if ((r = sshkey_try_load_public(pub, file, NULL)) != 0) in sshkey_load_cert()
441 *keyp = pub; in sshkey_load_cert()
442 pub = NULL; in sshkey_load_cert()
447 sshkey_free(pub); in sshkey_load_cert()
517 struct sshkey *pub = NULL; in sshkey_in_file() local
540 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL) { in sshkey_in_file()
544 if ((r = sshkey_read(pub, &cp)) != 0) in sshkey_in_file()
546 if (sshkey_compare(key, pub) || in sshkey_in_file()
548 sshkey_compare(key->cert->signature_key, pub))) { in sshkey_in_file()
552 sshkey_free(pub); in sshkey_in_file()
553 pub = NULL; in sshkey_in_file()
557 sshkey_free(pub); in sshkey_in_file()