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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:25:      /*! @module Nettle    */      static void random_func_wrapper(void *f, pike_nettle_size_t num, uint8_t *out)   {    push_int(num);    apply_svalue((struct svalue *)f, 1);    if(TYPEOF(Pike_sp[-1])!=T_STRING)    Pike_error("Random function did not return string value.\n"); -  if(Pike_sp[-1].u.string->len != (unsigned int)num) +  if((unsigned)Pike_sp[-1].u.string->len != (unsigned)num)    Pike_error("Random function did not return correct number of bytes.\n");    memcpy(out, Pike_sp[-1].u.string->str, num);    pop_stack();   }      /*! @decl array(object(Gmp.mpz)) @    *! dsa_generate_keypair(int p_bits, int q_bits, @    *! function(int(0..):string(0..255)) rnd)    *!    *! Generates a DSA key pair with @[p_bits] number of bits (sometimes