The code is suitable only for servers, not clients. So it doesn't need
to be in the client library.
misc.c missing.c md4.c md5.c print.c radius.c rbtree.c \
sha1.c snprintf.c strlcat.c strlcpy.c token.c udpfromto.c \
valuepair.c fifo.c packet.c event.c getaddrinfo.c vqp.c \
misc.c missing.c md4.c md5.c print.c radius.c rbtree.c \
sha1.c snprintf.c strlcat.c strlcpy.c token.c udpfromto.c \
valuepair.c fifo.c packet.c event.c getaddrinfo.c vqp.c \
- heap.c dhcp.c tcp.c soh.c
SERVER_SRCS = acct.c auth.c client.c conffile.c crypt.c exec.c files.c \
listen.c log.c mainconfig.c modules.c modcall.c \
SERVER_SRCS = acct.c auth.c client.c conffile.c crypt.c exec.c files.c \
listen.c log.c mainconfig.c modules.c modcall.c \
+ radiusd.c stats.c soh.c \
session.c threads.c util.c valuepair.c version.c \
xlat.c event.c realms.c evaluate.c vmps.c detail.c
session.c threads.c util.c valuepair.c version.c \
xlat.c event.c realms.c evaluate.c vmps.c detail.c
#include <freeradius-devel/ident.h>
RCSID("$Id$")
#include <freeradius-devel/ident.h>
RCSID("$Id$")
+#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/soh.h>
/*
#include <freeradius-devel/soh.h>
/*
hdr.tlv_vendor = soh_pull_be_32(data); data += 4;
if (hdr.tlv_type != 7 || hdr.tlv_vendor != 0x137) {
hdr.tlv_vendor = soh_pull_be_32(data); data += 4;
if (hdr.tlv_type != 7 || hdr.tlv_vendor != 0x137) {
- fr_strerror_printf("SoH payload is %i %08x not a ms-vendor packet", hdr.tlv_type, hdr.tlv_vendor);
+ DEBUG("SoH payload is %i %08x not a ms-vendor packet", hdr.tlv_type, hdr.tlv_vendor);
return -1;
}
hdr.soh_type = soh_pull_be_16(data); data += 2;
hdr.soh_len = soh_pull_be_16(data); data += 2;
if (hdr.soh_type != 1) {
return -1;
}
hdr.soh_type = soh_pull_be_16(data); data += 2;
hdr.soh_len = soh_pull_be_16(data); data += 2;
if (hdr.soh_type != 1) {
- fr_strerror_printf("SoH tlv %04x is not a response", hdr.soh_type);
+ DEBUG("SoH tlv %04x is not a response", hdr.soh_type);
if (resp.outer_type!=7 || resp.vendor != 0x137) {
if (resp.outer_type!=7 || resp.vendor != 0x137) {
- fr_strerror_printf("SoH response outer type %i/vendor %08x not recognised", resp.outer_type, resp.vendor);
+ DEBUG("SoH response outer type %i/vendor %08x not recognised", resp.outer_type, resp.vendor);
return -1;
}
switch (resp.inner_type) {
case 1:
/* no mode sub-header */
return -1;
}
switch (resp.inner_type) {
case 1:
/* no mode sub-header */
- fr_strerror_printf("SoH without mode subheader");
+ DEBUG("SoH without mode subheader");
break;
case 2:
mode.outer_type = soh_pull_be_16(data); data += 2;
break;
case 2:
mode.outer_type = soh_pull_be_16(data); data += 2;
data += 2;
if (mode.outer_type != 7 || mode.vendor != 0x137 || mode.content_type != 0) {
data += 2;
if (mode.outer_type != 7 || mode.vendor != 0x137 || mode.content_type != 0) {
- fr_strerror_printf("SoH mode subheader outer type %i/vendor %08x/content type %i invalid", mode.outer_type, mode.vendor, mode.content_type);
+ DEBUG("SoH mode subheader outer type %i/vendor %08x/content type %i invalid", mode.outer_type, mode.vendor, mode.content_type);
return -1;
}
DEBUG("SoH with mode subheader");
break;
default:
return -1;
}
DEBUG("SoH with mode subheader");
break;
default:
- fr_strerror_printf("SoH invalid inner type %i", resp.inner_type);
+ DEBUG("SoH invalid inner type %i", resp.inner_type);
DEBUG("SoH MS type-value payload");
eapsoh_mstlv(sohvp, data + 4, tlv.tlv_len - 4);
} else {
DEBUG("SoH MS type-value payload");
eapsoh_mstlv(sohvp, data + 4, tlv.tlv_len - 4);
} else {
- fr_strerror_printf("SoH unhandled vendor-specific TLV %08x/component=%i %i bytes payload", curr_shid, curr_shid_c, tlv.tlv_len);
+ DEBUG("SoH unhandled vendor-specific TLV %08x/component=%i %i bytes payload", curr_shid, curr_shid_c, tlv.tlv_len);