int _get_decode_data(_MIPD_ char *globalptr, char *buf, int len, char *outbuf){ rsa_decode(_MIPP_ globalptr,buf,len,outbuf); return 0; };
void tm_link_rep::secure_client () { if (secret != "") return; write ("!", LINK_IN); write_packet (rsa_my_public_key (), LINK_IN); bool success; string r= read_packet (LINK_OUT, 10000, success); if (!success) { stop (); return; } secret= rsa_decode (r, rsa_my_private_key ()); }