roken: Add base64 functions to libroken
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 21 Nov 2010 10:09:42 +0000 (10:09 +0000)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 24 Nov 2010 05:31:15 +0000 (21:31 -0800)
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>

src/roken/Makefile.in
src/roken/NTMakefile
src/roken/afsroken.def
src/roken/librokenafs.map

index b7db251..7c22a31 100644 (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
 
index adea2dc..5886b79 100644 (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 \
index 689556c..4b000ea 100644 (file)
@@ -24,3 +24,5 @@ EXPORTS
        vwarnx                  @28
        warn                    @29
        warnx                   @30
+       base64_decode           @31
+       base64_encode           @32
index 11bca46..340529e 100644 (file)
@@ -1,5 +1,7 @@
 {
     global:
+               base64_decode;
+               base64_encode;
                ct_memcmp;
                daemon;
                err;