Home
last modified time | relevance | path

Searched refs:sshkey_equal (Results 1 – 22 of 22) sorted by relevance

/freebsd/crypto/openssh/regress/unittests/sshkey/
H A Dtest_file.c81 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
90 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
100 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
108 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
134 ASSERT_INT_EQ(sshkey_equal(k1, k2), 0); in sshkey_file_tests()
191 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
200 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
210 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
218 ASSERT_INT_EQ(sshkey_equal(k1, k2), 1); in sshkey_file_tests()
226 ASSERT_INT_EQ(sshkey_equal(k1, k2), 0); in sshkey_file_tests()
[all …]
H A Dtest_sshkey.c325 ASSERT_INT_EQ(sshkey_equal(kr, k1), 1); in sshkey_tests()
341 ASSERT_INT_EQ(sshkey_equal(kd, k1), 1); in sshkey_tests()
361 ASSERT_INT_EQ(sshkey_equal(ke, k1), 1); in sshkey_tests()
377 ASSERT_INT_EQ(sshkey_equal(kf, k1), 1); in sshkey_tests()
383 ASSERT_INT_EQ(sshkey_equal(kd, kr), 0); in sshkey_tests()
385 ASSERT_INT_EQ(sshkey_equal(kd, ke), 0); in sshkey_tests()
386 ASSERT_INT_EQ(sshkey_equal(kr, ke), 0); in sshkey_tests()
387 ASSERT_INT_EQ(sshkey_equal(ke, kf), 0); in sshkey_tests()
389 ASSERT_INT_EQ(sshkey_equal(kd, kf), 0); in sshkey_tests()
396 ASSERT_INT_EQ(sshkey_equal(kr, k1), 0); in sshkey_tests()
[all …]
/freebsd/crypto/openssh/regress/unittests/sshsig/
H A Dtests.c70 ASSERT_INT_EQ(sshkey_equal(k, sign_key), 1); in check_sig()
/freebsd/crypto/openssh/
H A Dauth2-pubkeyfile.c309 if (!sshkey_equal(found, key->cert->signature_key) || in auth_check_authkey_line()
314 if (!sshkey_equal(found, key) || keyopts->cert_authority) in auth_check_authkey_line()
H A Dssh-agent.c407 !sshkey_equal(key, dch->keys[i])) in match_key_hop()
416 if (!sshkey_equal(key->cert->signature_key, dch->keys[i])) in match_key_hop()
599 if (sshkey_equal(key, id->key)) in lookup_identity()
742 !sshkey_equal(expected_key, mkey) || in parse_userauth_request()
929 if (hostkey != NULL && !sshkey_equal(hostkey, in process_sign_request2()
1746 key_match = sshkey_equal(key, e->session_ids[i].key); in process_ext_session_bind()
H A Dsshd-session.c600 sshkey_equal(key, in get_hostkey_index()
606 sshkey_equal(key, sensitive_data.host_keys[i]))) in get_hostkey_index()
610 sshkey_equal(key, sensitive_data.host_pubkeys[i]))) in get_hostkey_index()
H A Dsshkey.h207 int sshkey_equal(const struct sshkey *, const struct sshkey *);
H A Dhostfile.c387 if (sshkey_equal(k, hostkeys->entries[i].key)) { in check_hostkeys_by_key_or_type()
565 if (!sshkey_equal(ctx->keys[i], l->key)) in host_delete()
H A Dauthfile.c388 strict_type ? sshkey_equal : sshkey_equal_public; in sshkey_in_file()
H A Dsshconnect.c757 if (l->key == NULL || !sshkey_equal(ctx->key, l->key)) in hostkeys_find_by_key_cb()
1080 !sshkey_equal(ip_found->key, host_found->key)))) in check_host_key()
1510 if (sshkey_equal(previous_host_key, host_key)) { in verify_host_key()
H A Dssh-pkcs11-helper.c106 if (sshkey_equal(k, ki->key)) in lookup_key()
H A Dclientloop.c2099 if (sshkey_equal(l->key, ctx->keys[i])) { in hostkeys_find()
2148 if (!sshkey_equal(l->key, ctx->keys[i])) in hostkeys_find()
2182 if (!sshkey_equal(l->key, ctx->old_keys[i])) in hostkeys_check_old()
2484 if (sshkey_equal(key, ctx->keys[i])) { in client_input_hostkeys()
H A Dsshconnect2.c723 if (sshkey_equal(key, id->key)) { in input_userauth_pk_ok()
1745 if (sshkey_equal(idlist->keys[j], id->key)) { in pubkey_prepare()
1778 if (sshkey_equal(id->key, id2->key)) { in pubkey_prepare()
H A Dauth2-pubkey.c117 if (!sshkey_equal(hostkey, ssh->kex->initial_hostkey)) in userauth_pubkey()
H A Dsshsig.c911 if (!sigopts->ca && sshkey_equal(found_key, sign_key)) { in check_allowed_keys_line()
H A Dssh_namespace.h870 #define sshkey_equal Fssh_sshkey_equal macro
H A Dsshd.c1567 if (!sshkey_equal(pubkey, key)) { in main()
H A Dkrl.c225 sshkey_equal(rc->ca_key, ca_key)) { in revoked_certs_for_ca_key()
H A Dsshkey.c856 sshkey_equal(const struct sshkey *a, const struct sshkey *b) in sshkey_equal() function
3239 if (!sshkey_equal(pubkey, k)) { in sshkey_parse_private2()
H A Dssh-pkcs11.c700 if (sshkey_equal(key, (*keysp)[i])) in pkcs11_key_included()
H A Dssh-keygen.c1830 if (sshkey_equal(ca, agent_ids->keys[j])) { in do_ca_sign()
/freebsd/crypto/openssh/regress/unittests/hostkeys/
H A Dtest_iterate.c142 ASSERT_INT_EQ(sshkey_equal(l->key, expected->l.key), 1); in check()