diff --git a/src/include/crypto.h b/src/include/crypto.h index fd80314..46dba90 100644 --- a/src/include/crypto.h +++ b/src/include/crypto.h @@ -3,40 +3,12 @@ #include -char *base_64(const unsigned char *input, int length); - -char *unbase_64(unsigned char *input, int length); - void gcrypt_init(); void gcrypt_set_key_and_iv(const char *key, const char *iv); -//char *gcrypt_encrypt_msg(char *msg, size_t msg_length); char *gcrypt_encrypt_msg(char *msg, size_t msg_length, int *out_length); - char *gcrypt_decrypt_msg(char *msg, size_t msg_length); - -char *base64_encode(const unsigned char *data, - size_t input_length, - size_t *output_length); - -unsigned char *base64_decode(const char *data, - size_t input_length, - size_t *output_length); - -void build_decoding_table(); - -void base64_cleanup(); - -int Base64decode_len(const char *bufcoded); - -int Base64encode_len(int len); - -int Base64encode(char *encoded, const char *string, int len); - -int Base64decode(char *bufplain, const char *bufcoded); - - #endif //DAWN_CRYPTO_H diff --git a/src/utils/dawn_iwinfo.c b/src/utils/dawn_iwinfo.c index 0d83f40..3153725 100644 --- a/src/utils/dawn_iwinfo.c +++ b/src/utils/dawn_iwinfo.c @@ -127,15 +127,10 @@ int get_bandwidth(const char *ifname, uint8_t *client_addr, float *rx_rate, floa e = (struct iwinfo_assoclist_entry *) &buf[i]; if (mac_is_equal(client_addr, e->mac)) { - //struct iwinfo_assoclist_entry * rx_rate = e->rx_rate; - //struct iwinfo_assoclist_entry * tx_rate = e->tx_rate; *rx_rate = e->rx_rate.rate / 1000; *tx_rate = e->tx_rate.rate / 1000; return 1; } - // return e->signal; - - } return 0;