]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
libdnssec: remove base64 workaround in binary
authorDaniel Salzman <daniel.salzman@nic.cz>
Fri, 7 Sep 2018 09:21:00 +0000 (11:21 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Fri, 7 Sep 2018 12:14:15 +0000 (14:14 +0200)
src/libdnssec/binary.c

index 4fec6f6cace2a56bb66e78242bf8626f6ffd729b..4afdbc606400a71a3cee81acb38bda3787c43aee 100644 (file)
 #include <assert.h>
 #include <string.h>
 
+#include "contrib/base64.h"
 #include "libdnssec/binary.h"
 #include "libdnssec/error.h"
 #include "libdnssec/shared/shared.h"
 
-// Workaround for symbol redefinition if linked statically.
-#define base64_encode base64encode
-#define base64_decode base64decode
-#define base64_encode_alloc base64encodealloc
-#define base64_decode_alloc base64decodealloc
-#include "contrib/base64.c"
-
 /* -- public API ----------------------------------------------------------- */
 
 _public_