From: Nikos Mavrogiannopoulos Date: Thu, 27 Mar 2003 09:02:33 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls_0_9_4~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d249a3728b2bd4e25d6da29fc7cfe9266ecc9ded;p=thirdparty%2Fgnutls.git *** empty log message *** --- diff --git a/lib/x509_b64.c b/lib/x509_b64.c index 0e54dff189..6943705fe8 100644 --- a/lib/x509_b64.c +++ b/lib/x509_b64.c @@ -1,7 +1,7 @@ /* - * Copyright (C) 2000,2001 Nikos Mavroyanopoulos + * Copyright (C) 2000,2001,2003 Nikos Mavroyanopoulos * - * This file is part of GNUTLS. + * This file is part of GNUTLS. * * The GNUTLS library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public diff --git a/lib/x509_b64.h b/lib/x509_b64.h index 9317fd5f47..60b0ed1fb1 100644 --- a/lib/x509_b64.h +++ b/lib/x509_b64.h @@ -5,7 +5,7 @@ int _gnutls_base64_decode(const uint8 * data, size_t data_size, uint8 ** result) int _gnutls_fbase64_decode( const opaque* header, const uint8 * data, size_t data_size, uint8 ** result); -#define B64SIZE( data_size) ((data_size%3==0)?((data_size/3)*4):(4+((data_size/3)*4))) +#define B64SIZE( data_size) ((data_size%3==0)?((data_size*4)/3):(4+((data_size*4)/3))) /* The size for B64 encoding + newlines plus header */