Lines Matching refs:msg

235 	Buffer msg;  in ssh_lock_agent()  local
237 buffer_init(&msg); in ssh_lock_agent()
238 buffer_put_char(&msg, lock ? SSH_AGENTC_LOCK : SSH_AGENTC_UNLOCK); in ssh_lock_agent()
239 buffer_put_cstring(&msg, password); in ssh_lock_agent()
241 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_lock_agent()
242 buffer_free(&msg); in ssh_lock_agent()
245 type = buffer_get_char(&msg); in ssh_lock_agent()
246 buffer_free(&msg); in ssh_lock_agent()
422 Buffer msg; in ssh_agent_sign() local
434 buffer_init(&msg); in ssh_agent_sign()
435 buffer_put_char(&msg, SSH2_AGENTC_SIGN_REQUEST); in ssh_agent_sign()
436 buffer_put_string(&msg, blob, blen); in ssh_agent_sign()
437 buffer_put_string(&msg, data, datalen); in ssh_agent_sign()
438 buffer_put_int(&msg, flags); in ssh_agent_sign()
441 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_agent_sign()
442 buffer_free(&msg); in ssh_agent_sign()
445 type = buffer_get_char(&msg); in ssh_agent_sign()
452 *sigp = buffer_get_string(&msg, lenp); in ssh_agent_sign()
454 buffer_free(&msg); in ssh_agent_sign()
490 Buffer msg; in ssh_add_identity_constrained() local
493 buffer_init(&msg); in ssh_add_identity_constrained()
500 buffer_put_char(&msg, type); in ssh_add_identity_constrained()
501 ssh_encode_identity_rsa1(&msg, key->rsa, comment); in ssh_add_identity_constrained()
516 buffer_put_char(&msg, type); in ssh_add_identity_constrained()
517 ssh_encode_identity_ssh2(&msg, key, comment); in ssh_add_identity_constrained()
520 buffer_free(&msg); in ssh_add_identity_constrained()
525 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME); in ssh_add_identity_constrained()
526 buffer_put_int(&msg, life); in ssh_add_identity_constrained()
529 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_CONFIRM); in ssh_add_identity_constrained()
531 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_add_identity_constrained()
532 buffer_free(&msg); in ssh_add_identity_constrained()
535 type = buffer_get_char(&msg); in ssh_add_identity_constrained()
536 buffer_free(&msg); in ssh_add_identity_constrained()
548 Buffer msg; in ssh_remove_identity() local
553 buffer_init(&msg); in ssh_remove_identity()
556 buffer_put_char(&msg, SSH_AGENTC_REMOVE_RSA_IDENTITY); in ssh_remove_identity()
557 buffer_put_int(&msg, BN_num_bits(key->rsa->n)); in ssh_remove_identity()
558 buffer_put_bignum(&msg, key->rsa->e); in ssh_remove_identity()
559 buffer_put_bignum(&msg, key->rsa->n); in ssh_remove_identity()
562 buffer_put_char(&msg, SSH2_AGENTC_REMOVE_IDENTITY); in ssh_remove_identity()
563 buffer_put_string(&msg, blob, blen); in ssh_remove_identity()
566 buffer_free(&msg); in ssh_remove_identity()
569 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_remove_identity()
570 buffer_free(&msg); in ssh_remove_identity()
573 type = buffer_get_char(&msg); in ssh_remove_identity()
574 buffer_free(&msg); in ssh_remove_identity()
582 Buffer msg; in ssh_update_card() local
592 buffer_init(&msg); in ssh_update_card()
593 buffer_put_char(&msg, type); in ssh_update_card()
594 buffer_put_cstring(&msg, reader_id); in ssh_update_card()
595 buffer_put_cstring(&msg, pin); in ssh_update_card()
599 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME); in ssh_update_card()
600 buffer_put_int(&msg, life); in ssh_update_card()
603 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_CONFIRM); in ssh_update_card()
606 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_update_card()
607 buffer_free(&msg); in ssh_update_card()
610 type = buffer_get_char(&msg); in ssh_update_card()
611 buffer_free(&msg); in ssh_update_card()
623 Buffer msg; in ssh_remove_all_identities() local
629 buffer_init(&msg); in ssh_remove_all_identities()
630 buffer_put_char(&msg, code); in ssh_remove_all_identities()
632 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_remove_all_identities()
633 buffer_free(&msg); in ssh_remove_all_identities()
636 type = buffer_get_char(&msg); in ssh_remove_all_identities()
637 buffer_free(&msg); in ssh_remove_all_identities()