Branch: Tag:

2002-03-09

2002-03-09 18:28:02 by Martin Nilsson <mani@lysator.liu.se>

throw -> error

Rev: lib/modules/Cache.pmod/Storage.pmod/Base.pike:1.7
Rev: lib/modules/Cache.pmod/cache.pike:1.9
Rev: lib/modules/Calendar_I.pmod/Gregorian.pmod:1.27
Rev: lib/modules/Crypto/_rsa.pike:1.6
Rev: lib/modules/Crypto/dsa.pike:1.11
Rev: lib/modules/Crypto/randomness.pmod:1.21
Rev: lib/modules/Crypto/rsa.pike:1.31
Rev: lib/modules/Filesystem.pmod/Tar.pmod:1.13
Rev: lib/modules/Getopt.pmod:1.19
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_bars.pike:1.7
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_graph.pike:1.9
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:1.8
Rev: lib/modules/Languages.pmod/PLIS.pmod:1.14
Rev: lib/modules/Parser.pmod/XML.pmod/Tree.pmod:1.15
Rev: lib/modules/Protocols.pmod/DNS.pmod:1.62
Rev: lib/modules/Protocols.pmod/NNTP.pmod:1.10
Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.20

1: - /* $Id: randomness.pmod,v 1.20 2001/11/08 01:45:39 nilsson Exp $ + /* $Id: randomness.pmod,v 1.21 2002/03/09 18:13:09 nilsson Exp $    */      //! Assorted stronger or weaker randomnumber generators.
46: Inside #if defined(__NT__)
   Crypto.nt.CRYPT_VERIFYCONTEXT    /*|Crypto.nt.CRYPT_SILENT*/);    if(!ctx) -  throw(({ "Crypto.random: couldn't create crypto context\n", backtrace()})); +  error( "Crypto.random: couldn't create crypto context.\n" );       string res = ctx->CryptGenRandom(8192);       if(!res) -  throw(({ "Crypto.random: couldn't generate randomness\n", backtrace()})); +  error( "Crypto.random: couldn't generate randomness.\n" );       destruct(ctx);   
64:    parent_pipe = Stdio.File();    child_pipe = parent_pipe->pipe();    if (!child_pipe) -  throw( ({ "Crypto.random->popen: couldn't create pipe\n", backtrace() }) ); +  error( "Crypto.random->popen: couldn't create pipe.\n" );       object null=Stdio.File("/dev/null","rw");    env["PATH"]=PATH;
160:    /* Not very random, but at least a fallback... */    return global_arcfour = pike_random();   #endif /* constant(Crypto.arcfour) */ -  throw( ({ "Crypto.randomness.reasonably_random: No source found\n", backtrace() }) ); +  error( "Crypto.randomness.reasonably_random: No source found.\n" );   }      //!
179:    return res;    }    -  throw( ({ "Crypto.randomness.really_random: No source found\n", backtrace() }) ); +  error( "Crypto.randomness.really_random: No source found.\n" );   }