#include "base64.hh"
#include <inttypes.h>
-
+#include "dns.hh"
namespace anonpdns {
char B64Decode1(char cInChar)
{
// Interpret the resulting 3 bytes...note there
// may have been padding, so those padded bytes
// are actually ignored.
+#if BYTE_ORDER == BIG_ENDIAN
+ strOutput += pBuf[1];
+ strOutput += pBuf[2];
+ strOutput += pBuf[3];
+#else
strOutput += pBuf[2];
strOutput += pBuf[1];
strOutput += pBuf[0];
+#endif
+
} // while
if(pad)
strOutput.resize(strOutput.length()-pad);