Deleted Added
full compact
radlib.h (228730) radlib.h (243956)
1/*-
2 * Copyright 1998 Juniper Networks, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright 1998 Juniper Networks, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/lib/libradius/radlib.h 228730 2011-12-20 11:13:44Z melifaro $
26 * $FreeBSD: head/lib/libradius/radlib.h 243956 2012-12-06 19:00:37Z sem $
27 */
28
29#ifndef _RADLIB_H_
30#define _RADLIB_H_
31
32#include <sys/types.h>
33#include <netinet/in.h>
34

--- 154 unchanged lines hidden (view full) ---

189
190struct rad_handle;
191struct timeval;
192
193__BEGIN_DECLS
194struct rad_handle *rad_acct_open(void);
195int rad_add_server(struct rad_handle *,
196 const char *, int, const char *, int, int);
27 */
28
29#ifndef _RADLIB_H_
30#define _RADLIB_H_
31
32#include <sys/types.h>
33#include <netinet/in.h>
34

--- 154 unchanged lines hidden (view full) ---

189
190struct rad_handle;
191struct timeval;
192
193__BEGIN_DECLS
194struct rad_handle *rad_acct_open(void);
195int rad_add_server(struct rad_handle *,
196 const char *, int, const char *, int, int);
197int rad_add_server_ex(struct rad_handle *,
198 const char *, int, const char *, int, int,
199 int, struct in_addr *);
197struct rad_handle *rad_auth_open(void);
198void rad_bind_to(struct rad_handle *, in_addr_t);
199void rad_close(struct rad_handle *);
200int rad_config(struct rad_handle *, const char *);
201int rad_continue_send_request(struct rad_handle *, int,
202 int *, struct timeval *);
203int rad_create_request(struct rad_handle *, int);
204int rad_create_response(struct rad_handle *, int);
205struct in_addr rad_cvt_addr(const void *);
200struct rad_handle *rad_auth_open(void);
201void rad_bind_to(struct rad_handle *, in_addr_t);
202void rad_close(struct rad_handle *);
203int rad_config(struct rad_handle *, const char *);
204int rad_continue_send_request(struct rad_handle *, int,
205 int *, struct timeval *);
206int rad_create_request(struct rad_handle *, int);
207int rad_create_response(struct rad_handle *, int);
208struct in_addr rad_cvt_addr(const void *);
209struct in6_addr rad_cvt_addr6(const void *);
206u_int32_t rad_cvt_int(const void *);
207char *rad_cvt_string(const void *, size_t);
208int rad_get_attr(struct rad_handle *, const void **,
209 size_t *);
210int rad_init_send_request(struct rad_handle *, int *,
211 struct timeval *);
212struct rad_handle *rad_open(void); /* Deprecated, == rad_auth_open */
213int rad_put_addr(struct rad_handle *, int, struct in_addr);
210u_int32_t rad_cvt_int(const void *);
211char *rad_cvt_string(const void *, size_t);
212int rad_get_attr(struct rad_handle *, const void **,
213 size_t *);
214int rad_init_send_request(struct rad_handle *, int *,
215 struct timeval *);
216struct rad_handle *rad_open(void); /* Deprecated, == rad_auth_open */
217int rad_put_addr(struct rad_handle *, int, struct in_addr);
218int rad_put_addr6(struct rad_handle *, int, struct in6_addr);
214int rad_put_attr(struct rad_handle *, int,
215 const void *, size_t);
216int rad_put_int(struct rad_handle *, int, u_int32_t);
217int rad_put_string(struct rad_handle *, int,
218 const char *);
219int rad_put_message_authentic(struct rad_handle *);
220ssize_t rad_request_authenticator(struct rad_handle *, char *,
221 size_t);

--- 12 unchanged lines hidden ---
219int rad_put_attr(struct rad_handle *, int,
220 const void *, size_t);
221int rad_put_int(struct rad_handle *, int, u_int32_t);
222int rad_put_string(struct rad_handle *, int,
223 const char *);
224int rad_put_message_authentic(struct rad_handle *);
225ssize_t rad_request_authenticator(struct rad_handle *, char *,
226 size_t);

--- 12 unchanged lines hidden ---