Lines Matching refs:msg
234 Buffer msg; in ssh_lock_agent() local
236 buffer_init(&msg); in ssh_lock_agent()
237 buffer_put_char(&msg, lock ? SSH_AGENTC_LOCK : SSH_AGENTC_UNLOCK); in ssh_lock_agent()
238 buffer_put_cstring(&msg, password); in ssh_lock_agent()
240 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_lock_agent()
241 buffer_free(&msg); in ssh_lock_agent()
244 type = buffer_get_char(&msg); in ssh_lock_agent()
245 buffer_free(&msg); in ssh_lock_agent()
420 Buffer msg; in ssh_agent_sign() local
432 buffer_init(&msg); in ssh_agent_sign()
433 buffer_put_char(&msg, SSH2_AGENTC_SIGN_REQUEST); in ssh_agent_sign()
434 buffer_put_string(&msg, blob, blen); in ssh_agent_sign()
435 buffer_put_string(&msg, data, datalen); in ssh_agent_sign()
436 buffer_put_int(&msg, flags); in ssh_agent_sign()
439 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_agent_sign()
440 buffer_free(&msg); in ssh_agent_sign()
443 type = buffer_get_char(&msg); in ssh_agent_sign()
450 *sigp = buffer_get_string(&msg, lenp); in ssh_agent_sign()
452 buffer_free(&msg); in ssh_agent_sign()
505 Buffer msg; in ssh_add_identity_constrained() local
508 buffer_init(&msg); in ssh_add_identity_constrained()
515 buffer_put_char(&msg, type); in ssh_add_identity_constrained()
516 ssh_encode_identity_rsa1(&msg, key->rsa, comment); in ssh_add_identity_constrained()
523 buffer_put_char(&msg, type); in ssh_add_identity_constrained()
524 ssh_encode_identity_ssh2(&msg, key, comment); in ssh_add_identity_constrained()
527 buffer_free(&msg); in ssh_add_identity_constrained()
532 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME); in ssh_add_identity_constrained()
533 buffer_put_int(&msg, life); in ssh_add_identity_constrained()
536 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_CONFIRM); in ssh_add_identity_constrained()
538 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_add_identity_constrained()
539 buffer_free(&msg); in ssh_add_identity_constrained()
542 type = buffer_get_char(&msg); in ssh_add_identity_constrained()
543 buffer_free(&msg); in ssh_add_identity_constrained()
555 Buffer msg; in ssh_remove_identity() local
560 buffer_init(&msg); in ssh_remove_identity()
563 buffer_put_char(&msg, SSH_AGENTC_REMOVE_RSA_IDENTITY); in ssh_remove_identity()
564 buffer_put_int(&msg, BN_num_bits(key->rsa->n)); in ssh_remove_identity()
565 buffer_put_bignum(&msg, key->rsa->e); in ssh_remove_identity()
566 buffer_put_bignum(&msg, key->rsa->n); in ssh_remove_identity()
569 buffer_put_char(&msg, SSH2_AGENTC_REMOVE_IDENTITY); in ssh_remove_identity()
570 buffer_put_string(&msg, blob, blen); in ssh_remove_identity()
573 buffer_free(&msg); in ssh_remove_identity()
576 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_remove_identity()
577 buffer_free(&msg); in ssh_remove_identity()
580 type = buffer_get_char(&msg); in ssh_remove_identity()
581 buffer_free(&msg); in ssh_remove_identity()
589 Buffer msg; in ssh_update_card() local
599 buffer_init(&msg); in ssh_update_card()
600 buffer_put_char(&msg, type); in ssh_update_card()
601 buffer_put_cstring(&msg, reader_id); in ssh_update_card()
602 buffer_put_cstring(&msg, pin); in ssh_update_card()
606 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME); in ssh_update_card()
607 buffer_put_int(&msg, life); in ssh_update_card()
610 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_CONFIRM); in ssh_update_card()
613 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_update_card()
614 buffer_free(&msg); in ssh_update_card()
617 type = buffer_get_char(&msg); in ssh_update_card()
618 buffer_free(&msg); in ssh_update_card()
630 Buffer msg; in ssh_remove_all_identities() local
636 buffer_init(&msg); in ssh_remove_all_identities()
637 buffer_put_char(&msg, code); in ssh_remove_all_identities()
639 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_remove_all_identities()
640 buffer_free(&msg); in ssh_remove_all_identities()
643 type = buffer_get_char(&msg); in ssh_remove_all_identities()
644 buffer_free(&msg); in ssh_remove_all_identities()