Lines Matching defs:pub
340 struct sshkey *pub = NULL;
370 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL)
372 if ((r = sshkey_try_load_public(pub, filename, commentp)) == 0) {
374 *keyp = pub;
377 sshkey_free(pub);
381 if ((pub = sshkey_new(KEY_RSA1)) == NULL)
383 if ((r = sshkey_try_load_public(pub, filename, commentp)) == 0) {
385 *keyp = pub;
388 sshkey_free(pub);
392 /* try .pub suffix */
393 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL)
397 (strlcat(file, ".pub", sizeof file) < sizeof(file)) &&
398 (r = sshkey_try_load_public(pub, file, commentp)) == 0) {
400 *keyp = pub;
403 sshkey_free(pub);
412 struct sshkey *pub = NULL;
419 if (asprintf(&file, "%s-cert.pub", filename) == -1)
422 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL) {
425 if ((r = sshkey_try_load_public(pub, file, NULL)) != 0)
429 *keyp = pub;
430 pub = NULL;
435 sshkey_free(pub);
505 struct sshkey *pub = NULL;
528 if ((pub = sshkey_new(KEY_UNSPEC)) == NULL) {
532 if ((r = sshkey_read(pub, &cp)) != 0)
534 if (sshkey_compare(key, pub) ||
536 sshkey_compare(key->cert->signature_key, pub))) {
540 sshkey_free(pub);
541 pub = NULL;
545 sshkey_free(pub);