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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:19:   #include "nettle.h"   #include <nettle/dsa.h>   #include <nettle/rsa.h>   #include <gmp.h>      #include "bignum.h"      /*! @module Nettle    */    - void random_func_wrapper(void *f, size_t num, uint8_t *out) + static void random_func_wrapper(void *f, unsigned int 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)    Pike_error("Random function did not return correct number of bytes.\n");    memcpy(out, Pike_sp[-1].u.string->str, num);    pop_stack();   }