summaryrefslogtreecommitdiff
path: root/lib/radsec.c
blob: 760da84769aa0a09bbf10770b1e4f32bf3645051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include <stdlib.h>
#include <stdint.h>
#include "libradsec.h"
#include "libradsec-impl.h"

#define ERR_OK 0
#define ERR_NOMEM 1
#define ERR_NOSYS 2
#define ERR_SOME_ERROR 99

int rs_context_create(struct rs_handle **ctx)
{
  *ctx = (struct rs_handle *) malloc (sizeof (struct rs_handle));
  return (ctx ? ERR_OK : ERR_NOMEM);
}

void rs_context_destroy(struct rs_handle *ctx)
{
  free (ctx);
}

int rs_context_set_alloc_scheme(struct rs_handle *ctx, struct rs_alloc_scheme *scheme)
{
  return ERR_NOSYS;
}

int rs_context_config_read(struct rs_handle *ctx, const char *config_file)
{
  return ERR_NOSYS;
}

int rs_conn_create(const struct rs_handle *ctx, struct rs_connection **conn)
{
  return ERR_NOSYS;
}

int rs_conn_destroy(struct rs_connection  *conn)
{
  return ERR_NOSYS;
}

int rs_conn_set_eventbase(struct rs_connection *conn, struct event_base *eb)
{
  return ERR_NOSYS;
}

int rs_conn_set_callbacks(struct rs_connection *conn, struct rs_conn_callbacks *cb)
{
  return ERR_NOSYS;
}

int rs_conn_set_server(struct rs_connection *conn, const char *name)
{
  return ERR_NOSYS;
}

int rs_conn_get_server(const struct rs_connection *conn, const char *name, size_t buflen)
{
  return ERR_NOSYS;
}

int rs_packet_send(const struct rs_conn *conn, const struct rs_packet *pkt, void *user_data)
{
  return ERR_NOSYS;
}

int rs_packet_receive(const struct rs_conn *conn, struct rs_packet **pkt)
{
  return ERR_NOSYS;
}