Skip to content

Commit

Permalink
Move the rest of VQP into proto_vmps
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 4, 2013
1 parent f538ada commit bf72e29
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lib/all.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ TARGET := libfreeradius-radius.a
SOURCES := dict.c filters.c hash.c hmac.c hmacsha1.c isaac.c log.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 \
valuepair.c fifo.c packet.c event.c getaddrinfo.c \
heap.c tcp.c base64.c

SRC_CFLAGS := -D_LIBRADIUS -I$(top_builddir)/src
Expand Down
1 change: 0 additions & 1 deletion src/main/listen.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ RCSID("$Id$")
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
#include <freeradius-devel/vqp.h>
#include <freeradius-devel/process.h>
#include <freeradius-devel/protocol.h>

Expand Down
3 changes: 2 additions & 1 deletion src/modules/proto_vmps/all.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ ifneq "$(TARGETNAME)" ""
TARGET := $(TARGETNAME).a
endif

SOURCES := vmps.c
SOURCES := vmps.c vqp.c

3 changes: 2 additions & 1 deletion src/modules/proto_vmps/vmps.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ RCSID("$Id$")
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/protocol.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/vqp.h>
#include <freeradius-devel/rad_assert.h>

#include "vqp.h"

static int vmps_process(REQUEST *request)
{
DEBUG2("Doing VMPS");
Expand Down
4 changes: 1 addition & 3 deletions src/lib/vqp.c → src/modules/proto_vmps/vqp.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ RCSID("$Id$");

#include <freeradius-devel/libradius.h>
#include <freeradius-devel/udpfromto.h>
#include <freeradius-devel/vqp.h>

#ifdef WITH_VMPS
#include "vqp.h"

#define MAX_VMPS_LEN (MAX_STRING_LEN - 1)

Expand Down Expand Up @@ -690,4 +689,3 @@ int vqp_encode(RADIUS_PACKET *packet, RADIUS_PACKET *original)

return 0;
}
#endif
File renamed without changes.

0 comments on commit bf72e29

Please sign in to comment.