mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
reformat code
This commit is contained in:
parent
a2b7faee97
commit
377d0815e9
13 changed files with 116 additions and 124 deletions
|
|
@ -12,7 +12,7 @@ void gcrypt_init();
|
|||
void gcrypt_set_key_and_iv(char *key, 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_encrypt_msg(char *msg, size_t msg_length, int *out_length);
|
||||
|
||||
|
||||
char *gcrypt_decrypt_msg(char *msg, size_t msg_length);
|
||||
|
|
@ -31,8 +31,11 @@ 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);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -101,8 +101,11 @@ struct ap_s ap_array[ARRAY_AP_LEN];
|
|||
pthread_mutex_t ap_array_mutex;
|
||||
|
||||
ap insert_to_ap_array(ap entry);
|
||||
|
||||
void print_ap_array();
|
||||
|
||||
void *remove_ap_array_thread(void *arg);
|
||||
|
||||
ap ap_array_get_ap(uint8_t bssid_addr[]);
|
||||
|
||||
// Array
|
||||
|
|
|
|||
|
|
@ -5,6 +5,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int get_rssi_from_iwinfo(__uint8_t* client_addr);
|
||||
int get_rssi_from_iwinfo(__uint8_t *client_addr);
|
||||
|
||||
#endif //DAWN_RSSI_H
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@
|
|||
#define STR2MAC(a) &(a)[0], &(a)[1], &(a)[2], &(a)[3], &(a)[4], &(a)[5]
|
||||
|
||||
int hex_to_bin(char ch);
|
||||
|
||||
int hwaddr_aton(const char *txt, uint8_t *addr);
|
||||
int convert_mac(char* in, char* out);
|
||||
|
||||
int convert_mac(char *in, char *out);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue