|
@@ -145,8 +145,6 @@ typedef int (*lpfn_cryptionfun)(unsigned char * out ,int outLen,const unsigned
|
|
|
|
|
|
static lpfn_cryptionfun decodestring = NULL;
|
|
|
static lpfn_cryptionfun encodestring = NULL;
|
|
|
-static lpfn_cryptionfun decodestring_mobile = NULL;
|
|
|
-static lpfn_cryptionfun encodestring_mobile = NULL;
|
|
|
|
|
|
static unsigned char seed_key []= {0x81,0x32,0x13,0xf5,0x29,0x3b,0x52,0x37,0x61,0x98,0x33,0x15,0x72,0x31,0xfe,0x34};
|
|
|
|
|
@@ -944,11 +942,6 @@ static void do_shake_send(bizchan_t* chan, SOCKET conn, int* error) {
|
|
|
lpfn_cryptionfun encodefun = encodestring;
|
|
|
lpfn_cryptionfun decodefun = decodestring;
|
|
|
|
|
|
- if (1 == chan->config.crypt_type) {
|
|
|
- encodefun = encodestring_mobile;
|
|
|
- decodefun = decodestring_mobile;
|
|
|
- }
|
|
|
-
|
|
|
int enc_length = KEY_LEN;
|
|
|
hdr.tag[0] = 'A';
|
|
|
hdr.tag[1] = 'C';
|
|
@@ -991,11 +984,6 @@ static void do_shake_recv(bizchan_t* chan, SOCKET conn, int* error) {
|
|
|
lpfn_cryptionfun encodefun = encodestring;
|
|
|
lpfn_cryptionfun decodefun = decodestring;
|
|
|
|
|
|
- if (1 == chan->config.crypt_type) {
|
|
|
- encodefun = encodestring_mobile;
|
|
|
- decodefun = decodestring_mobile;
|
|
|
- }
|
|
|
-
|
|
|
do
|
|
|
{
|
|
|
t = recv(conn, (char*)&ack_hdr + ack_hdr_recv_bytes, sizeof(ack_hdr) - ack_hdr_recv_bytes, 0);
|
|
@@ -1412,25 +1400,6 @@ static int init_decode_func(const bizchan_config_t* config, const bizchan_callba
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
- if (1 == config->crypt_type) {
|
|
|
- if (!encodestring_mobile) {
|
|
|
- HMODULE hInst = LoadLibraryA("libacmstrenc_mobile.so");
|
|
|
- if (hInst) {
|
|
|
- encodestring_mobile = (lpfn_cryptionfun)GetProcAddress(hInst, "encodestring");
|
|
|
- }
|
|
|
- if (!encodestring_mobile)
|
|
|
- return ret;
|
|
|
- }
|
|
|
- if (!decodestring_mobile) {
|
|
|
- HMODULE hInst = LoadLibraryA("libacmstrdec_mobile.so");
|
|
|
- if (hInst) {
|
|
|
- decodestring_mobile = (lpfn_cryptionfun)GetProcAddress(hInst, "decodestring");
|
|
|
- }
|
|
|
- if (!decodestring_mobile)
|
|
|
- return ret;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
if (encodestring && decodestring) {
|
|
|
ret = 0;
|
|
|
}
|