summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/lib/roken/base64.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/lib/roken/base64.c')
-rw-r--r--crypto/heimdal/lib/roken/base64.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/heimdal/lib/roken/base64.c b/crypto/heimdal/lib/roken/base64.c
index 21e79c1..daf7fc5 100644
--- a/crypto/heimdal/lib/roken/base64.c
+++ b/crypto/heimdal/lib/roken/base64.c
@@ -33,26 +33,26 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: base64.c,v 1.5 2001/05/28 17:33:41 joda Exp $");
+RCSID("$Id: base64.c 15506 2005-06-23 10:47:57Z lha $");
#endif
#include <stdlib.h>
#include <string.h>
#include "base64.h"
-static char base64_chars[] =
+static const char base64_chars[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
static int
pos(char c)
{
- char *p;
+ const char *p;
for (p = base64_chars; *p; p++)
if (*p == c)
return p - base64_chars;
return -1;
}
-int
+int ROKEN_LIB_FUNCTION
base64_encode(const void *data, int size, char **str)
{
char *s, *p;
@@ -114,7 +114,7 @@ token_decode(const char *token)
return (marker << 24) | val;
}
-int
+int ROKEN_LIB_FUNCTION
base64_decode(const char *str, void *data)
{
const char *p;
OpenPOWER on IntegriCloud