X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=crypto%2Fcrypto.c;h=ee89f0e8abe2be9b512eb4dad08273c70efe877d;hp=e8d7f1a64dfff433a848b4c1f555e0f20a9d3c68;hb=7ed5ab23c04b08d569a8515b2eab39338eddd261;hpb=288c17549e4d409b60147b6eb8444e72c0eea4e2 diff --git a/crypto/crypto.c b/crypto/crypto.c index e8d7f1a..ee89f0e 100644 --- a/crypto/crypto.c +++ b/crypto/crypto.c @@ -1,6 +1,24 @@ /* + * crypto - Tcl bindings for parts of the `nettle' crypto library + * Copyright 2006 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 + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * 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 library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301, USA. */ + #include "chiark_tcl_crypto.h" const PadOp cht_padop_entries[]= { @@ -177,7 +195,7 @@ static void key_t_dup(Tcl_Obj *src_obj, Tcl_Obj *dup_obj) { } static void key_t_ustr(Tcl_Obj *o) { - obj_updatestr_array(o, OBJ_CIPHKEY(o)->value, OBJ_CIPHKEY(o)->valuelen); + cht_obj_updatestr_array(o, OBJ_CIPHKEY(o)->value, OBJ_CIPHKEY(o)->valuelen); } static int key_t_sfa(Tcl_Interp *ip, Tcl_Obj *o) {