chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changelog: finalise 1.3.5
[chiark-tcl.git]
/
crypto
/
crypto.c
diff --git
a/crypto/crypto.c
b/crypto/crypto.c
index a926def525bc5298426ce7e1d7cfd84f94f2e514..6efea24f325ce5b7079087e5b64082b33c32ce39 100644
(file)
--- a/
crypto/crypto.c
+++ b/
crypto/crypto.c
@@
-1,6
+1,6
@@
/*
* crypto - Tcl bindings for parts of the `nettle' crypto library
/*
* crypto - Tcl bindings for parts of the `nettle' crypto library
- * Copyright 2006 Ian Jackson
+ * Copyright 2006
-2012
Ian Jackson
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@
-13,9
+13,7
@@
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301, USA.
+ * along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
*/
@@
-254,6
+252,14
@@
static int blockcipher_prep(Tcl_Interp *ip, Tcl_Obj *key_obj,
int rc;
CiphKeyValue *key;
int rc;
CiphKeyValue *key;
+ /* placate gcc, see Debian #968734 */
+ *key_r= 0;
+ *sched_r= 0;
+ *iv_r= 0;
+ *iv_lenbytes_r= 0;
+ *buffers_r= 0;
+ *nblocks_r= 0;
+
if (data_len % alg->blocksize)
return cht_staticerr(ip, "block cipher input not whole number of blocks",
"HBYTES BLOCKCIPHER LENGTH");
if (data_len % alg->blocksize)
return cht_staticerr(ip, "block cipher input not whole number of blocks",
"HBYTES BLOCKCIPHER LENGTH");