mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
tidy up crypto header
This commit is contained in:
parent
a4117a1bdf
commit
0d58210e7d
2 changed files with 0 additions and 33 deletions
|
@ -3,40 +3,12 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
|
||||
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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue