Lines Matching refs:msg

233 	Buffer msg;  in ssh_lock_agent()  local
235 buffer_init(&msg); in ssh_lock_agent()
236 buffer_put_char(&msg, lock ? SSH_AGENTC_LOCK : SSH_AGENTC_UNLOCK); in ssh_lock_agent()
237 buffer_put_cstring(&msg, password); in ssh_lock_agent()
239 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_lock_agent()
240 buffer_free(&msg); in ssh_lock_agent()
243 type = buffer_get_char(&msg); in ssh_lock_agent()
244 buffer_free(&msg); in ssh_lock_agent()
418 Buffer msg; in ssh_agent_sign() local
430 buffer_init(&msg); in ssh_agent_sign()
431 buffer_put_char(&msg, SSH2_AGENTC_SIGN_REQUEST); in ssh_agent_sign()
432 buffer_put_string(&msg, blob, blen); in ssh_agent_sign()
433 buffer_put_string(&msg, data, datalen); in ssh_agent_sign()
434 buffer_put_int(&msg, flags); in ssh_agent_sign()
437 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_agent_sign()
438 buffer_free(&msg); in ssh_agent_sign()
441 type = buffer_get_char(&msg); in ssh_agent_sign()
448 *sigp = buffer_get_string(&msg, lenp); in ssh_agent_sign()
450 buffer_free(&msg); in ssh_agent_sign()
503 Buffer msg; in ssh_add_identity_constrained() local
506 buffer_init(&msg); in ssh_add_identity_constrained()
513 buffer_put_char(&msg, type); in ssh_add_identity_constrained()
514 ssh_encode_identity_rsa1(&msg, key->rsa, comment); in ssh_add_identity_constrained()
521 buffer_put_char(&msg, type); in ssh_add_identity_constrained()
522 ssh_encode_identity_ssh2(&msg, key, comment); in ssh_add_identity_constrained()
525 buffer_free(&msg); in ssh_add_identity_constrained()
531 buffer_put_char(&msg, SSH_AGENT_CONSTRAIN_LIFETIME); in ssh_add_identity_constrained()
532 buffer_put_int(&msg, life); in ssh_add_identity_constrained()
535 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_add_identity_constrained()
536 buffer_free(&msg); in ssh_add_identity_constrained()
539 type = buffer_get_char(&msg); in ssh_add_identity_constrained()
540 buffer_free(&msg); in ssh_add_identity_constrained()
558 Buffer msg; in ssh_remove_identity() local
563 buffer_init(&msg); in ssh_remove_identity()
566 buffer_put_char(&msg, SSH_AGENTC_REMOVE_RSA_IDENTITY); in ssh_remove_identity()
567 buffer_put_int(&msg, BN_num_bits(key->rsa->n)); in ssh_remove_identity()
568 buffer_put_bignum(&msg, key->rsa->e); in ssh_remove_identity()
569 buffer_put_bignum(&msg, key->rsa->n); in ssh_remove_identity()
572 buffer_put_char(&msg, SSH2_AGENTC_REMOVE_IDENTITY); in ssh_remove_identity()
573 buffer_put_string(&msg, blob, blen); in ssh_remove_identity()
576 buffer_free(&msg); in ssh_remove_identity()
579 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_remove_identity()
580 buffer_free(&msg); in ssh_remove_identity()
583 type = buffer_get_char(&msg); in ssh_remove_identity()
584 buffer_free(&msg); in ssh_remove_identity()
597 Buffer msg; in ssh_remove_all_identities() local
603 buffer_init(&msg); in ssh_remove_all_identities()
604 buffer_put_char(&msg, code); in ssh_remove_all_identities()
606 if (ssh_request_reply(auth, &msg, &msg) == 0) { in ssh_remove_all_identities()
607 buffer_free(&msg); in ssh_remove_all_identities()
610 type = buffer_get_char(&msg); in ssh_remove_all_identities()
611 buffer_free(&msg); in ssh_remove_all_identities()