X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Flib%2Fbase64.h;h=ae53cd86cffdd50e150e029bb6f939f9accb4d1c;hb=4132c9f33642f579d89700f36caced609d374d51;hp=ae3318243798ef2dcbee4d9cc420bcc9fba5aa1f;hpb=e24a29bc22a97d8d6df9671d9e936d956f4f873b;p=bacula%2Fbacula diff --git a/bacula/src/lib/base64.h b/bacula/src/lib/base64.h index ae33182437..ae53cd86cf 100644 --- a/bacula/src/lib/base64.h +++ b/bacula/src/lib/base64.h @@ -5,26 +5,35 @@ * * Version $Id$ */ - /* - Copyright (C) 2000-2005 Kern Sibbald and John Walker + Bacula® - The Network Backup Solution + + Copyright (C) 2000-2006 Free Software Foundation Europe e.V. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. + The main author of Bacula is Kern Sibbald, with contributions from + many others, a complete list can be found in the file AUTHORS. + This program is Free Software; you can redistribute it and/or + modify it under the terms of version three of the GNU Affero General Public + License as published by the Free Software Foundation and included + in the file LICENSE. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. + You should have received a copy of the GNU Affero General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. - */ + Bacula® is a registered trademark of Kern Sibbald. + The licensor of Bacula is the Free Software Foundation Europe + (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, + Switzerland, email:ftf@fsfeurope.org. +*/ /* Maximum size of len bytes after base64 encoding */ -#define BASE64_SIZE(len) (((len + 3 - (len % 3)) / 3) * 4) +#define BASE64_SIZE(len) ((4 * len + 2) / 3 + 1) + +// #define BASE64_SIZE(len) (((len + 3 - (len % 3)) / 3) * 4)