diff openssh-4.4p1/authfd.c openssh-4.4p1_my/authfd.c 302a303,318 > int > ssh_decrypt(AuthenticationConnection *ac, char* input, char** output, int* output_len){ > Buffer request; > int code1 = SSH2_AGENTC_DECRYPT_REQUEST; > int code2 = SSH2_AGENTC_DECRYPT_RESPONSE; > buffer_init(&request); > buffer_put_char(&request, code1); > buffer_put_string(&request, input, strlen(input)); > ssh_request_reply(ac, &request, &request); > if ( buffer_get_char(&request) != code2 ) > printf("NOT EQUAL\n"); > *output = buffer_get_string(&request, output_len); > buffer_free(&request); > return 0; > } > diff openssh-4.4p1/authfd.h openssh-4.4p1_my/authfd.h 38a39,41 > #define SSH2_AGENTC_DECRYPT_REQUEST 15 > #define SSH2_AGENTC_DECRYPT_RESPONSE 16 > 94a98,100 > int > ssh_decrypt(AuthenticationConnection *, char* input, char** ouptput, int* output_len); > Only in openssh-4.4p1_my/: buildpkg.sh Only in openssh-4.4p1_my/: config.h Only in openssh-4.4p1_my/: config.status Common subdirectories: openssh-4.4p1/contrib and openssh-4.4p1_my/contrib Only in openssh-4.4p1_my/: len Only in openssh-4.4p1_my/: Makefile Only in openssh-4.4p1_my/: Makefile.oryg Only in openssh-4.4p1_my/: n.txt Common subdirectories: openssh-4.4p1/openbsd-compat and openssh-4.4p1_my/openbsd-compat Only in openssh-4.4p1_my/: opensshd.init Only in openssh-4.4p1_my/: openssh.xml Common subdirectories: openssh-4.4p1/regress and openssh-4.4p1_my/regress Common subdirectories: openssh-4.4p1/scard and openssh-4.4p1_my/scard Only in openssh-4.4p1_my/: secret.txt diff openssh-4.4p1/ssh-agent.c openssh-4.4p1_my/ssh-agent.c 305a306,340 > static void > decrypt_message(SocketEntry *e) > { > Idtab *tab = idtab_lookup(2); > Identity *id; > Buffer msg; > char * blob = NULL; > int blen = 0; > BIGNUM* input = NULL; > BIGNUM* output = NULL; > char* rValue = NULL; > > blob = buffer_get_string(&e->request, &blen); > BN_hex2bn(&input, blob); > BN_hex2bn(&output, blob); > TAILQ_FOREACH(id, &tab->idlist, next) { > if ( rsa_private_decrypt(output, input, id->key->rsa) > 0 ){ > buffer_init(&msg); > buffer_put_char(&msg, SSH2_AGENTC_DECRYPT_RESPONSE); > rValue = BN_bn2hex(output); > buffer_put_string(&msg, rValue, strlen(rValue)); > buffer_put_int(&e->output, buffer_len(&msg)); > buffer_append(&e->output, buffer_ptr(&msg), buffer_len(&msg)); > buffer_free(&msg); > xfree(blob); > return; > } > } > // TO DO - send error message > buffer_init(&msg); > buffer_put_char(&msg, SSH_AGENT_FAILURE); > buffer_free(&msg); > xfree(blob); > } > 762a798,800 > case SSH2_AGENTC_DECRYPT_REQUEST: > decrypt_message(e); > break; Only in openssh-4.4p1_my/: ssh-encrypt.c Only in openssh-4.4p1_my/: ssh-encrypt.c.oryg Only in openssh-4.4p1_my/: .ssh-encrypt.c.swp Only in openssh-4.4p1_my/: ssh_prng_cmds Only in openssh-4.4p1_my/: survey.sh Only in openssh-4.4p1_my/: test.sh