Commit Graph

20 Commits

Author SHA1 Message Date
Nicolas Williams
f9a0e8f076 roken: add rkbase64 noinst program
This will be useful in tests.
2019-12-04 13:40:28 -06:00
Nicolas Williams
4981cfc420 roken: base64: set errno on decode errors 2019-11-18 17:28:32 -06:00
Nicolas Williams
34728ce79e rk_base64_encode(): set errno in all error cases 2019-10-03 13:09:18 -05:00
Love Hörnquist Åstrand
37afa01be3 rename roken base64, fixes #107 2014-08-22 20:57:24 -07:00
Asanka Herath
24cbddd4b9 Resolve warnings on Windows
Appease the compiler by resolving some of the reported warnings,
including:

- Control paths that don't return.

- Potentially uninitialized variables.

- Unused local variables.

- Unreachable code.

- Type safety.

- Synchronize declarations with definitions for functions.
2010-08-20 13:03:38 -04:00
Asanka Herath
d00f9984a5 Make roken build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 21:42:02 -08:00
Love Hornquist Astrand
57393f7b86 Add <limits.h> for INT_MAX, needed on Solaris 2009-08-14 03:05:18 +02:00
Love Hornquist Astrand
c8b05eef61 (base64_encode): bound input length to /4 of max int and positive 2009-07-30 10:36:39 +02:00
Love Hörnquist Åstrand
0d31d3d686 drop rcsid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:30:37 +00:00
Love Hörnquist Åstrand
76f849a64a return NULL in return value on error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:04:29 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
c5b7d0e858 remove dead store
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23658 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:29:51 +00:00
Love Hörnquist Åstrand
5bae431953 Add const, from Andrew Abartlet <abartlet@samba.org>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15506 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-23 10:47:57 +00:00
Love Hörnquist Åstrand
709aa58c74 define ROKEN_LIB_FUNCTION on all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-12 11:29:18 +00:00
Johan Danielsson
cb3a6310d4 clean up the decode mess somewhat
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10012 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-28 17:33:41 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
a74d27d3d7 const-ize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-10 04:55:28 +00:00
Assar Westerlund
53cd61da13 (base64_encode): check return value from malloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4120 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-05 02:37:15 +00:00
Johan Danielsson
d8de41c193 base64
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3186 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-27 22:41:56 +00:00