pike.git / src / post_modules / Nettle / hash.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:1:   /* hash.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: hash.cmod,v 1.13 2003/08/26 11:14:48 nilsson Exp $"); + RCSID("$Id: hash.cmod,v 1.14 2003/11/29 00:11:39 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"      /* For this_object() */   #include "object.h"   #include "module_support.h"      #include "nettle_config.h"      #ifdef HAVE_LIBNETTLE
pike.git/src/post_modules/Nettle/hash.cmod:54:       /*! @decl string name(void)    *!    *! Returns a human readable name for the algorithm.    */    PIKEFUN string name()    {    if (!THIS->meta)    Pike_error("HashInfo not properly initialized.\n");    -  push_string(make_shared_string(THIS->meta->name)); +  push_text(THIS->meta->name);    }       /*! @decl string digest_size(void)    *!    *! Returns the size of a hash digests.    */    PIKEFUN int digest_size()    {    if (!THIS->meta)    Pike_error("HashInfo not properly initialized.\n");