Deleted Added
full compact
libradius.3 (211397) libradius.3 (228730)
1.\" Copyright 1998 Juniper Networks, Inc.
2.\" Copyright 2009 Alexander Motin <mav@FreeBSD.org>.
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.\" Copyright 1998 Juniper Networks, Inc.
2.\" Copyright 2009 Alexander Motin <mav@FreeBSD.org>.
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/libradius.3 211397 2010-08-16 15:18:30Z joel $
26.\" $FreeBSD: head/lib/libradius/libradius.3 228730 2011-12-20 11:13:44Z melifaro $
27.\"
28.Dd August 5, 2009
29.Dt LIBRADIUS 3
30.Os
31.Sh NAME
32.Nm libradius
33.Nd RADIUS client/server library
34.Sh SYNOPSIS

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

86.Ft int
87.Fn rad_send_request "struct rad_handle *h"
88.Ft int
89.Fn rad_send_response "struct rad_handle *h"
90.Ft "struct rad_handle *"
91.Fn rad_server_open "int fd"
92.Ft "const char *"
93.Fn rad_server_secret "struct rad_handle *h"
27.\"
28.Dd August 5, 2009
29.Dt LIBRADIUS 3
30.Os
31.Sh NAME
32.Nm libradius
33.Nd RADIUS client/server library
34.Sh SYNOPSIS

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

86.Ft int
87.Fn rad_send_request "struct rad_handle *h"
88.Ft int
89.Fn rad_send_response "struct rad_handle *h"
90.Ft "struct rad_handle *"
91.Fn rad_server_open "int fd"
92.Ft "const char *"
93.Fn rad_server_secret "struct rad_handle *h"
94.Ft "void"
95.Fn rad_bind_to "struct rad_handle *h" "in_addr_t addr"
94.Ft u_char *
95.Fn rad_demangle "struct rad_handle *h" "const void *mangled" "size_t mlen"
96.Ft u_char *
97.Fn rad_demangle_mppe_key "struct rad_handle *h" "const void *mangled" "size_t mlen" "size_t *len"
98.Ft "const char *"
99.Fn rad_strerror "struct rad_handle *h"
100.Sh DESCRIPTION
101The

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

426was not large enough.
427.Pp
428The
429.Fn rad_server_secret
430returns the secret shared with the current RADIUS server according to the
431supplied rad_handle.
432.Pp
433The
96.Ft u_char *
97.Fn rad_demangle "struct rad_handle *h" "const void *mangled" "size_t mlen"
98.Ft u_char *
99.Fn rad_demangle_mppe_key "struct rad_handle *h" "const void *mangled" "size_t mlen" "size_t *len"
100.Ft "const char *"
101.Fn rad_strerror "struct rad_handle *h"
102.Sh DESCRIPTION
103The

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

428was not large enough.
429.Pp
430The
431.Fn rad_server_secret
432returns the secret shared with the current RADIUS server according to the
433supplied rad_handle.
434.Pp
435The
436.Fn rad_bind_to
437assigns a source address for all requests to the current RADIUS server.
438.Pp
439The
434.Fn rad_demangle
435function demangles attributes containing passwords and MS-CHAPv1 MPPE-Keys.
436The return value is
437.Dv NULL
438on failure, or the plaintext attribute.
439This value should be freed using
440.Xr free 3
441when it is no longer needed.

--- 153 unchanged lines hidden ---
440.Fn rad_demangle
441function demangles attributes containing passwords and MS-CHAPv1 MPPE-Keys.
442The return value is
443.Dv NULL
444on failure, or the plaintext attribute.
445This value should be freed using
446.Xr free 3
447when it is no longer needed.

--- 153 unchanged lines hidden ---