roken: Add base64 functions to libroken

Install the base64.h header, and add the base64_encode and
base64_decode functions to the library

Change-Id: If0ed8fb13cecb6f4a48b4208fbef8c800a5284d5
Reviewed-on: http://gerrit.openafs.org/3354
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Simon Wilkinson 2010-11-21 10:09:42 +00:00 committed by Jeffrey Altman
parent 097bb407d9
commit fa6bbf1d32
4 changed files with 16 additions and 2 deletions

View File

@ -10,7 +10,8 @@ include @TOP_OBJDIR@/src/config/Makefile.shared
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
HEADERS = ${TOP_INCDIR}/roken.h \
HEADERS = ${TOP_INCDIR}/base64.h \
${TOP_INCDIR}/roken.h \
${TOP_INCDIR}/roken-common.h
UPSTREAM = $(TOP_SRCDIR)/external/heimdal/roken
@ -35,6 +36,7 @@ clean:
$(RM) -f $(OBJECTS) $(SHLIBOBJ) librokenafs.a librokenafs.exp
OBJECTS = $(ROKEN_LIBOBJS) \
base64.o \
cloexec.o ct.o hex.o issuid.o net_read.o net_write.o socket.o \
snprintf.o warnerr.o
@ -55,6 +57,9 @@ librokenafs.a: $(OBJECTS)
$(AR) crv $@ $(OBJECTS)
$(RANLIB) $@
$(TOP_INCDIR)/base64.h: ${UPSTREAM}/base64.h
$(INSTALL_DATA) $? $@
$(TOP_INCDIR)/err.h: ${UPSTREAM}/err.hin
cp $? $@
@ -67,6 +72,9 @@ $(TOP_INCDIR)/roken-common.h: $(UPSTREAM)/roken-common.h
err.h: ${UPSTREAM}/err.hin
cp $? $@
base64.o: $(UPSTREAM)/base64.c
$(AFS_CCRULE) $(UPSTREAM)/base64.c
cloexec.o: ${UPSTREAM}/cloexec.c
$(AFS_CCRULE) $(UPSTREAM)/cloexec.c

View File

@ -18,11 +18,13 @@ INCFILES = \
$(INCFILEDIR)\roken.h
ROKEN_INCFILES = \
$(INCFILEDIR)\roken-common.h
$(INCFILEDIR)\roken-common.h \
$(INCFILEDIR)\base64.h
LIBFILE = $(DESTDIR)\lib\afsroken.dll
ROKEN_OBJS = \
$(OUT)\base64.obj \
$(OUT)\cloexec.obj \
$(OUT)\ct.obj \
$(OUT)\ecalloc.obj \

View File

@ -24,3 +24,5 @@ EXPORTS
vwarnx @28
warn @29
warnx @30
base64_decode @31
base64_encode @32

View File

@ -1,5 +1,7 @@
{
global:
base64_decode;
base64_encode;
ct_memcmp;
daemon;
err;