/openbmc/ipmitool/src/plugins/ |
H A D | ipmi_intf.c | 211 if (intf->ssn_params.hostname != NULL) { in ipmi_intf_session_set_hostname() 212 free(intf->ssn_params.hostname); in ipmi_intf_session_set_hostname() 213 intf->ssn_params.hostname = NULL; in ipmi_intf_session_set_hostname() 218 intf->ssn_params.hostname = strdup(hostname); in ipmi_intf_session_set_hostname() 224 memset(intf->ssn_params.username, 0, 17); in ipmi_intf_session_set_username() 229 memcpy(intf->ssn_params.username, username, __min(strlen(username), 16)); in ipmi_intf_session_set_username() 235 memset(intf->ssn_params.authcode_set, 0, IPMI_AUTHCODE_BUFFER_SIZE); in ipmi_intf_session_set_password() 238 intf->ssn_params.password = 0; in ipmi_intf_session_set_password() 242 intf->ssn_params.password = 1; in ipmi_intf_session_set_password() 243 memcpy(intf->ssn_params.authcode_set, password, in ipmi_intf_session_set_password() [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_tsol.c | 188 intf->ssn_params.sol_escape_char, in print_escape_seq() 189 intf->ssn_params.sol_escape_char, in print_escape_seq() 190 intf->ssn_params.sol_escape_char, in print_escape_seq() 191 intf->ssn_params.sol_escape_char, in print_escape_seq() 192 intf->ssn_params.sol_escape_char, in print_escape_seq() 193 intf->ssn_params.sol_escape_char); in print_escape_seq() 267 (in_buff[i] == intf->ssn_params.sol_escape_char)) { in do_inbuf_actions() 275 if (in_buff[i] == intf->ssn_params.sol_escape_char) { in do_inbuf_actions() 284 intf->ssn_params.sol_escape_char); in do_inbuf_actions() 288 intf->ssn_params.sol_escape_char); in do_inbuf_actions() [all …]
|
H A D | ipmi_sol.c | 547 val2str(data[1], sol_parameter_vals), intf->ssn_params.port); in ipmi_get_sol_info() 548 params->payload_port = intf->ssn_params.port; in ipmi_get_sol_info() 1238 intf->ssn_params.sol_escape_char, in printSolEscapeSequences() 1239 intf->ssn_params.sol_escape_char, in printSolEscapeSequences() 1240 intf->ssn_params.sol_escape_char, in printSolEscapeSequences() 1241 intf->ssn_params.sol_escape_char, in printSolEscapeSequences() 1242 intf->ssn_params.sol_escape_char, in printSolEscapeSequences() 1243 intf->ssn_params.sol_escape_char, in printSolEscapeSequences() 1244 intf->ssn_params.sol_escape_char, in printSolEscapeSequences() 1245 intf->ssn_params.sol_escape_char); in printSolEscapeSequences() [all …]
|
H A D | ipmi_main.c | 275 ipmi_main_intf->ssn_params.retry = 1; in ipmi_catch_sigint()
|
H A D | ipmi_dcmi.c | 762 p = &intf->ssn_params; in ipmi_dcmi_prnt_oobDiscover()
|
/openbmc/ipmitool/src/plugins/lanplus/ |
H A D | lanplus_crypt.c | 98 strlen((const char *)intf->ssn_params.username); /* optional */ in lanplus_rakp2_hmac_matches() 166 buffer[57] = strlen((const char *)intf->ssn_params.username); in lanplus_rakp2_hmac_matches() 170 buffer[58 + i] = intf->ssn_params.username[i]; in lanplus_rakp2_hmac_matches() 378 strlen((const char *)intf->ssn_params.username); in lanplus_generate_rakp3_authcode() 409 input_buffer[20] = intf->ssn_params.privlvl; in lanplus_generate_rakp3_authcode() 414 input_buffer[21] = strlen((const char *)intf->ssn_params.username); in lanplus_generate_rakp3_authcode() 418 input_buffer[22 + i] = intf->ssn_params.username[i]; in lanplus_generate_rakp3_authcode() 494 strlen((const char *)intf->ssn_params.username); in lanplus_generate_sik() 539 input_buffer[33] = strlen((const char *)intf->ssn_params.username); in lanplus_generate_sik() 543 input_buffer[34 + i] = intf->ssn_params.username[i]; in lanplus_generate_sik() [all …]
|
H A D | lanplus.c | 2121 while (try < intf->ssn_params.retry) { in ipmi_lanplus_send_payload() 2259 try = intf->ssn_params.retry; in ipmi_lanplus_send_payload() 2264 try = intf->ssn_params.retry; in ipmi_lanplus_send_payload() 2268 try = intf->ssn_params.retry; in ipmi_lanplus_send_payload() 2673 msg_data[1] = intf->ssn_params.privlvl; in ipmi_get_auth_capabilities_cmd() 2806 if (ipmi_oem_active(intf, "intelplus") || intf->ssn_params.privlvl != IPMI_SESSION_PRIV_ADMIN) in ipmi_lanplus_open_session() 2807 msg[1] = intf->ssn_params.privlvl; in ipmi_lanplus_open_session() 2821 if (lanplus_get_requested_ciphers(intf->ssn_params.cipher_suite_id, in ipmi_lanplus_open_session() 2827 intf->ssn_params.cipher_suite_id); in ipmi_lanplus_open_session() 3027 msg[24] = intf->ssn_params.privlvl | intf->ssn_params.lookupbit; in ipmi_lanplus_rakp1() [all …]
|
/openbmc/ipmitool/src/ |
H A D | ipmishell.c | 304 intf->ssn_params.hostname); in ipmi_set_main() 314 intf->ssn_params.username); in ipmi_set_main() 339 val2str(intf->ssn_params.authtype_set, in ipmi_set_main() 357 val2str(intf->ssn_params.privlvl, in ipmi_set_main() 372 printf("Set session port to %d\n", intf->ssn_params.port); in ipmi_set_main()
|
H A D | ipmievd.c | 836 strlen((const char *)intf->ssn_params.hostname) + 3, in ipmievd_sel_main() 837 "%s: ", intf->ssn_params.hostname); in ipmievd_sel_main()
|
/openbmc/ipmitool/src/plugins/serial/ |
H A D | serial_terminal.c | 230 if (intf->ssn_params.timeout == 0) in ipmi_serial_term_open() 231 intf->ssn_params.timeout = IPMI_SERIAL_TIMEOUT; in ipmi_serial_term_open() 232 if (intf->ssn_params.retry == 0) in ipmi_serial_term_open() 233 intf->ssn_params.retry = IPMI_SERIAL_RETRY; in ipmi_serial_term_open() 264 n = poll(&pfd, 1, intf->ssn_params.timeout*1000); in serial_wait_for_data() 774 } while (tm < intf->ssn_params.timeout); in serial_term_get_message() 792 for (retry = 0; retry < intf->ssn_params.retry; retry++) { in ipmi_serial_term_send_cmd()
|
H A D | serial_basic.c | 284 if (intf->ssn_params.timeout == 0) in serial_bm_open() 285 intf->ssn_params.timeout = SERIAL_BM_TIMEOUT; in serial_bm_open() 286 if (intf->ssn_params.retry == 0) in serial_bm_open() 287 intf->ssn_params.retry = SERIAL_BM_RETRY_COUNT; in serial_bm_open() 458 n = poll(&pfd, 1, intf->ssn_params.timeout * 1000); in serial_bm_wait_for_data() 886 } while (tm < intf->ssn_params.timeout); in serial_bm_get_message() 909 for (retry = 0; retry < intf->ssn_params.retry; retry++) { in serial_bm_send_request()
|
/openbmc/ipmitool/src/plugins/lan/ |
H A D | lan.c | 266 tmout.tv_sec = intf->ssn_params.timeout; in ipmi_lan_recv_packet() 292 tmout.tv_sec = intf->ssn_params.timeout; in ipmi_lan_recv_packet() 959 if (++try >= intf->ssn_params.retry) { in ipmi_lan_send_cmd() 1309 if (++try >= intf->ssn_params.retry) { in ipmi_lan_send_sol_payload() 1584 struct ipmi_session_params *p = &intf->ssn_params; in ipmi_get_auth_capabilities_cmd() 1703 memcpy(msg_data+1, intf->ssn_params.username, 16); in ipmi_get_session_challenge_cmd() 1760 msg_data[1] = intf->ssn_params.privlvl; in ipmi_activate_session_cmd() 1862 uint8_t privlvl = intf->ssn_params.privlvl; in ipmi_set_session_privlvl_cmd() 2035 p = &intf->ssn_params; in ipmi_lan_open()
|
/openbmc/ipmitool/include/ipmitool/ |
H A D | ipmi_intf.h | 180 struct ipmi_session_params ssn_params; member
|