]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 27 Mar 2003 09:02:33 +0000 (09:02 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 27 Mar 2003 09:02:33 +0000 (09:02 +0000)
lib/x509_b64.c
lib/x509_b64.h

index 0e54dff189de5cd77bcab9b1e10ed009dd38c374..6943705fe8abac0d947fbb91fd004d869507f77a 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * Copyright (C) 2000,2001 Nikos Mavroyanopoulos <nmav@hellug.gr>
+ *  Copyright (C) 2000,2001,2003 Nikos Mavroyanopoulos <nmav@hellug.gr>
  *
- * 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   
index 9317fd5f472ee014196f7cfd926cd4e3f540acc1..60b0ed1fb1f0f369398b4d3dde2f86df5729a0c4 100644 (file)
@@ -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
  */