Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 87) sorted by relevance

1234

/openssh-portable/
H A Ddispatch.c45 logit("dispatch_protocol_error: type %d seq %u", type, seq); in dispatch_protocol_error()
84 ssh->dispatch[type] = fn; in ssh_dispatch_set()
91 u_char type; in ssh_dispatch_run() local
96 r = ssh_packet_read_seqnr(ssh, &type, &seqnr); in ssh_dispatch_run()
100 r = ssh_packet_read_poll_seqnr(ssh, &type, &seqnr); in ssh_dispatch_run()
103 if (type == SSH_MSG_NONE) in ssh_dispatch_run()
106 if (type > 0 && type < DISPATCH_MAX && in ssh_dispatch_run()
107 ssh->dispatch[type] != NULL) { in ssh_dispatch_run()
109 debug2("skipped packet (type %u)", type); in ssh_dispatch_run()
113 r = (*ssh->dispatch[type])(type, seqnr, ssh); in ssh_dispatch_run()
[all …]
H A Dauthfd.c75 decode_reply(u_char type) in decode_reply() argument
77 if (agent_failed(type)) in decode_reply()
209 r = decode_reply(type); in ssh_lock_agent()
245 u_char type; in ssh_fetch_identitylist() local
483 u_char type; in ssh_add_identity_constrained() local
488 switch (key->type) { in ssh_add_identity_constrained()
505 type = constrained ? in ssh_add_identity_constrained()
526 r = decode_reply(type); in ssh_add_identity_constrained()
562 r = decode_reply(type); in ssh_remove_identity()
580 u_char type; in ssh_update_card() local
[all …]
H A Dssh_api.c243 u_char type; in ssh_packet_next() local
267 if (type > 0 && type < DISPATCH_MAX && in ssh_packet_next()
268 type >= SSH2_MSG_KEXINIT && type <= SSH2_MSG_TRANSPORT_MAX && in ssh_packet_next()
269 ssh->dispatch[type] != NULL) { in ssh_packet_next()
270 if ((r = (*ssh->dispatch[type])(type, seqnr, ssh)) != 0) in ssh_packet_next()
273 *typep = type; in ssh_packet_next()
472 debug3_f("need %d", type); in _ssh_host_public_key()
475 if (k->key->type == type && in _ssh_host_public_key()
487 debug3_f("need %d", type); in _ssh_host_private_key()
490 if (k->key->type == type && in _ssh_host_private_key()
[all …]
H A Dsshkey.c168 if (kt->type == k->type) in sshkey_type()
192 if (kt->type == type) in sshkey_type_is_cert()
554 k->type = type; in sshkey_new()
817 type = force_plain ? sshkey_type_plain(key->type) : key->type; in to_blob_buf()
1357 if (ret->type != KEY_UNSPEC && ret->type != type) in sshkey_read()
1385 if (k->type != type) { in sshkey_read()
1395 ret->type = type; in sshkey_read()
1757 k->type = type; in sshkey_generate()
1784 to->type = from->type; in sshkey_cert_copy()
2884 k->type = sshkey_type_plain(k->type); in sshkey_drop_cert()
[all …]
H A Dmac.c50 int type; member
108 mac->type = macalg->type; in mac_setup_by_alg()
109 if (mac->type == SSH_DIGEST) { in mac_setup_by_alg()
144 switch (mac->type) { in mac_init()
178 switch (mac->type) { in mac_compute()
230 if (mac->type == SSH_UMAC) { in mac_clear()
233 } else if (mac->type == SSH_UMAC128) { in mac_clear()
H A Dsftp-client.c220 u_char type; in get_status() local
252 u_char type; in get_handle() local
296 u_char type; in get_decode_stat() local
341 u_char type; in get_decode_statvfs() local
399 u_char type; in do_init() local
430 type); in do_init()
836 u_char type; in do_realpath() local
1037 u_char type; in do_readlink() local
1217 u_char type; in do_download() local
1351 switch (type) { in do_download()
[all …]
H A Dssh-agent.c113 sock_type type; member
179 e->type = AUTH_UNUSED; in close_socket()
274 if (key->type == KEY_RSA) { in agent_decode_alg()
729 u_char type; in process_add_smartcard_key() local
744 switch (type) { in process_add_smartcard_key()
855 u_char type; in process_message() local
893 switch (type) { in process_message()
905 switch (type) { in process_message()
966 sockets[i].type = type; in new_socket()
980 sockets[old_alloc].type = type; in new_socket()
[all …]
H A Dmux.c174 u_int type; member
1204 if (type == mux_master_handlers[i].type) { in mux_master_read_cb()
1594 u_int type, ver; in mux_client_hello_exchange() local
1706 u_int type, rid; in mux_client_request_terminate() local
1738 switch (type) { in mux_client_request_terminate()
1762 u_int type, rid; in mux_client_forward() local
1816 switch (type) { in mux_client_forward()
1959 switch (type) { in mux_client_request_session()
2010 switch (type) { in mux_client_request_session()
2158 switch (type) { in mux_client_request_stdio_fwd()
[all …]
H A Dchannels.c283 switch (c->type) { in channel_lookup()
393 c->type = type; in channel_new()
748 switch (c->type) { in channel_still_open()
791 switch (c->type) { in channel_find_open()
848 c->type, in channel_format_status()
2666 u_char type; local
2681 type = cp[1];
2689 switch (type) {
2832 switch (type) {
2872 switch (type) {
[all …]
H A Dmsg.c45 ssh_msg_send(int fd, u_char type, struct sshbuf *m) in ssh_msg_send() argument
50 debug3_f("type %u", (unsigned int)type & 0xff); in ssh_msg_send()
53 buf[4] = type; /* 1st byte of payload is mesg-type */ in ssh_msg_send()
H A Dssh-pkcs11-client.c133 key->type = KEY_RSA; in rsa_encrypt()
192 key->type = KEY_ECDSA; in ecdsa_do_sign()
234 if (k->type == KEY_RSA) in wrap_key()
237 else if (k->type == KEY_ECDSA) in wrap_key()
319 int r, type; in pkcs11_add_provider() local
338 type = recv_msg(msg); in pkcs11_add_provider()
339 if (type == SSH2_AGENT_IDENTITIES_ANSWER) { in pkcs11_add_provider()
360 } else if (type == SSH2_AGENT_FAILURE) { in pkcs11_add_provider()
H A Dpacket.c117 u_char type; member
1059 switch (type) { in ssh_packet_log_type()
1247 u_char type; in ssh_packet_send2() local
1267 p->type = type; in ssh_packet_send2()
1296 type = p->type; in ssh_packet_send2()
1419 u_char type; in ssh_packet_read() local
1424 return type; in ssh_packet_read()
1436 u_char type; in ssh_packet_read_expect() local
2651 u_char type, *cp; in ssh_packet_send_mux() local
2661 type = cp[5]; in ssh_packet_send_mux()
[all …]
H A Dauth2-gss.c52 static int input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh);
53 static int input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh);
54 static int input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh);
138 input_gssapi_token(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_token() argument
202 input_gssapi_errtok(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_errtok() argument
246 input_gssapi_exchange_complete(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_exchange_complete() argument
279 input_gssapi_mic(int type, u_int32_t plen, struct ssh *ssh) in input_gssapi_mic() argument
H A Dssh-pkcs11.c243 CK_USER_TYPE type) in pkcs11_login_slot() argument
329 attr.type = type; in pkcs11_check_obj_bool_attrib()
380 key_filter[1].type = CKA_ID; in pkcs11_get_key()
714 key_attr[0].type = CKA_ID; in pkcs11_fetch_ecdsa_pubkey()
803 key->type = KEY_ECDSA; in pkcs11_fetch_ecdsa_pubkey()
835 key_attr[0].type = CKA_ID; in pkcs11_fetch_rsa_pubkey()
898 key->type = KEY_RSA; in pkcs11_fetch_rsa_pubkey()
937 cert_attr[0].type = CKA_ID; in pkcs11_fetch_x509_pubkey()
1013 key->type = KEY_RSA; in pkcs11_fetch_x509_pubkey()
1044 key->type = KEY_ECDSA; in pkcs11_fetch_x509_pubkey()
[all …]
H A Dloginrec.c238 li->type = LTYPE_LOGIN; in login_login()
488 li->type = LTYPE_LOGIN; in login_utmp_only()
666 switch (li->type) { in construct_utmp()
753 switch (li->type) { in construct_utmpx()
969 switch(li->type) { in utmp_write_entry()
1068 switch(li->type) { in utmpx_write_entry()
1136 switch(li->type) { in wtmp_write_entry()
1315 switch(li->type) { in wtmpx_write_entry()
1454 switch (li->type) { in syslogin_write_entry()
1526 switch(li->type) { in lastlog_write_entry()
[all …]
H A Dauthfile.c118 sshkey_load_private_type(int type, const char *filename, const char *passphrase, in sshkey_load_private_type() argument
135 r = sshkey_load_private_type_fd(fd, type, passphrase, keyp, commentp); in sshkey_load_private_type()
152 sshkey_load_private_type_fd(int fd, int type, const char *passphrase, in sshkey_load_private_type_fd() argument
161 (r = sshkey_parse_private_fileblob_type(buffer, type, in sshkey_load_private_type_fd()
319 sshkey_load_private_cert(int type, const char *filename, const char *passphrase, in sshkey_load_private_cert() argument
328 switch (type) { in sshkey_load_private_cert()
342 if ((r = sshkey_load_private_type(type, filename, in sshkey_load_private_cert()
H A Dssh-pkcs11-helper.c205 if (key->type == KEY_RSA) { in process_sign()
215 } else if (key->type == KEY_ECDSA) { in process_sign()
230 "type %d", (int)key->type); in process_sign()
258 u_char type; in process() local
274 (r = sshbuf_get_u8(iqueue, &type)) != 0) in process()
277 switch (type) { in process()
291 error("Unknown message %d", type); in process()
H A Dmonitor.c174 enum monitor_reqtype type; member
249 if (ent->type == type) { in monitor_permit()
321 ent->type); in monitor_child_preauth()
479 u_char type; in monitor_read() local
515 if (ent->type == type) in monitor_read()
1147 enum mm_keytype type = 0; in mm_answer_keyallowed() local
1167 switch (type) { in mm_answer_keyallowed()
1215 key_blobtype = type; in mm_answer_keyallowed()
1247 u_char type; in monitor_valid_userblob() local
1294 if (type == 0) in monitor_valid_userblob()
[all …]
H A Dsshconnect.c881 const char *type; in check_host_key() local
938 type = sshkey_type(host_key); in check_host_key()
989 type, ip); in check_host_key()
994 "hosts (%.500s).", type, ip, in check_host_key()
999 "of known hosts.", type, ip); in check_host_key()
1057 type, fp); in check_host_key()
1115 "list of known hosts.", hostp, type); in check_host_key()
1132 "requested strict checking.", type, host); in check_host_key()
1484 int type[] = { in show_other_keys() local
1496 for (i = 0; type[i] != -1; i++) { in show_other_keys()
[all …]
H A Dsshconnect2.c526 return kex_input_ext_info(type, seqnr, ssh); in input_userauth_ext_info()
717 if (key->type != pktype) { in input_userauth_pk_ok()
720 key->type, pktype); in input_userauth_pk_ok()
844 u_char type = GSS_ERROR(status) ? in process_gssapi_token() local
848 if ((r = sshpkt_start(ssh, type)) != 0 || in process_gssapi_token()
852 fatal_fr(r, "send %u packet", type); in process_gssapi_token()
1179 (key->type != KEY_RSA && key->type != KEY_RSA_CERT) || in key_sig_algorithm()
1194 if (sshkey_type_from_name(cp) != key->type) in key_sig_algorithm()
1336 id->key->type != private_id->key->type) { in sign_and_send_pubkey()
1584 switch (key->type) { in key_type_allowed_by_config()
[all …]
/openssh-portable/openbsd-compat/
H A Dsys-tree.h124 struct type *name##_SPLAY_INSERT(struct name *, struct type *); \
125 struct type *name##_SPLAY_REMOVE(struct name *, struct type *); \
164 struct type * \
188 struct type * \
389 attr void name##_RB_REMOVE_COLOR(struct name *, struct type *, struct type *);\
390 attr struct type *name##_RB_REMOVE(struct name *, struct type *); \
391 attr struct type *name##_RB_INSERT(struct name *, struct type *); \
392 attr struct type *name##_RB_FIND(struct name *, struct type *); \
393 attr struct type *name##_RB_NFIND(struct name *, struct type *); \
394 attr struct type *name##_RB_NEXT(struct type *); \
[all …]
H A Dsys-queue.h186 #define SLIST_HEAD(name, type) \ argument
194 #define SLIST_ENTRY(type) \ argument
246 struct type *curelm = (head)->slh_first; \
259 #define LIST_HEAD(name, type) \ argument
267 #define LIST_ENTRY(type) \ argument
342 #define SIMPLEQ_HEAD(name, type) \ argument
351 #define SIMPLEQ_ENTRY(type) \ argument
422 #define XSIMPLEQ_HEAD(name, type) \ argument
429 #define XSIMPLEQ_ENTRY(type) \ argument
502 #define TAILQ_HEAD(name, type) \ argument
[all …]
H A Dgetrrsetbyname.c150 u_int16_t type; member
157 u_int16_t type; member
270 rrset->rri_rdtype = response->query->type; in getrrsetbyname()
317 rr->type == rrset->rri_rdtype) in getrrsetbyname()
321 rr->type == T_RRSIG) in getrrsetbyname()
482 curr->type = _getshort(*cp); in parse_dns_qsection()
529 curr->type = _getshort(*cp); in parse_dns_rrsection()
597 count_dns_rr(struct dns_rr *p, u_int16_t class, u_int16_t type) in count_dns_rr() argument
602 if (p->class == class && p->type == type) in count_dns_rr()
/openssh-portable/regress/misc/fuzz-harness/
H A Dsig_fuzz.cc15 static struct sshkey *generate_or_die(int type, unsigned bits) { in generate_or_die() argument
18 if ((r = sshkey_generate(type, bits, &ret)) != 0) { in generate_or_die()
19 fprintf(stderr, "generate(%d, %u): %s", type, bits, ssh_err(r)); in generate_or_die()
/openssh-portable/regress/unittests/sshkey/
H A Dtest_file.c116 ASSERT_INT_EQ(k2->type, KEY_RSA_CERT); in sshkey_file_tests()
125 ASSERT_INT_EQ(k2->type, KEY_RSA_CERT); in sshkey_file_tests()
134 ASSERT_INT_EQ(k2->type, KEY_RSA_CERT); in sshkey_file_tests()
225 ASSERT_INT_EQ(k2->type, KEY_DSA_CERT); in sshkey_file_tests()
323 ASSERT_INT_EQ(k2->type, KEY_ECDSA_CERT); in sshkey_file_tests()
365 ASSERT_INT_EQ(k1->type, KEY_ED25519); in sshkey_file_tests()
390 ASSERT_INT_EQ(k2->type, KEY_ED25519_CERT); in sshkey_file_tests()
431 ASSERT_INT_EQ(k1->type, KEY_ECDSA_SK); in sshkey_file_tests()
455 ASSERT_INT_EQ(k2->type, KEY_ECDSA_SK_CERT); in sshkey_file_tests()
496 ASSERT_INT_EQ(k1->type, KEY_ED25519_SK); in sshkey_file_tests()
[all …]

Completed in 54 milliseconds

1234