Browse Source

iwym: auth.h

pull/1119/head
Hamish Coleman 1 year ago
parent
commit
ae3d54eed6
  1. 8
      include/auth.h
  2. 1
      include/n2n.h
  3. 5
      src/auth.c
  4. 1
      src/edge.c
  5. 1
      src/edge_utils.c
  6. 1
      src/sn_utils.c
  7. 1
      tools/n2n-keygen.c
  8. 1
      tools/tests-auth.c

8
include/auth.h

@ -17,13 +17,15 @@
*/ */
#include "n2n.h"
#ifndef AUTH_H #ifndef AUTH_H
#define AUTH_H #define AUTH_H
#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t, uint32_t
#include "n2n.h" // for n2n_private_public_key_t, n2n_community_t, N2N_A...
int bin_to_ascii (char *out, uint8_t *in, size_t in_len); int bin_to_ascii (char *out, uint8_t *in, size_t in_len);
int ascii_to_bin (uint8_t *out, char *in); int ascii_to_bin (uint8_t *out, char *in);

1
include/n2n.h

@ -149,7 +149,6 @@
#include "n2n_regex.h" #include "n2n_regex.h"
#include "sn_selection.h" #include "sn_selection.h"
#include "network_traffic_filter.h" #include "network_traffic_filter.h"
#include "auth.h"
#include "n2n_port_mapping.h" #include "n2n_port_mapping.h"

5
src/auth.c

@ -18,6 +18,11 @@
#include "auth.h" #include "auth.h"
#include <stdlib.h> // for calloc, free
#include <string.h> // for strlen, size_t
#include "curve25519.h" // for curve25519
#include "pearson.h" // for pearson_hash_128, pearson_hash_256
#include "speck.h" // for speck_context_t, speck_128_encrypt, speck_init
// mapping six binary bits to printable ascii character // mapping six binary bits to printable ascii character

1
src/edge.c

@ -16,6 +16,7 @@
* *
*/ */
#include "auth.h" // for generate_private_key, generate_p...
#include "n2n.h" #include "n2n.h"
/* *************************************************** */ /* *************************************************** */

1
src/edge_utils.c

@ -16,6 +16,7 @@
* *
*/ */
#include "auth.h" // for generate_private_key
#include "n2n.h" #include "n2n.h"
#include "network_traffic_filter.h" #include "network_traffic_filter.h"
#include "edge_utils_win32.h" #include "edge_utils_win32.h"

1
src/sn_utils.c

@ -16,6 +16,7 @@
* *
*/ */
#include "auth.h" // for ascii_to_bin, calculate_dynamic_key
#include "n2n.h" #include "n2n.h"
#define HASH_FIND_COMMUNITY(head, name, out) HASH_FIND_STR(head, name, out) #define HASH_FIND_COMMUNITY(head, name, out) HASH_FIND_STR(head, name, out)

1
tools/n2n-keygen.c

@ -17,6 +17,7 @@
*/ */
#include "auth.h" // for bin_to_ascii, bind_private_key_to_username, gene...
#include "n2n.h" #include "n2n.h"

1
tools/tests-auth.c

@ -18,6 +18,7 @@
#include <inttypes.h> #include <inttypes.h>
#include "auth.h" // for ascii_to_bin, bin_to_ascii, generate_private_key
#include "n2n.h" #include "n2n.h"
#include "hexdump.h" #include "hexdump.h"

Loading…
Cancel
Save