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, unsigned num, uint8_t *out) + void random_func_wrapper(void *f, 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)    Pike_error("Random function did not return correct number of bytes.\n");    memcpy(out, Pike_sp[-1].u.string->str, num);    pop_stack();   }
pike.git/src/post_modules/Nettle/hogweed.cmod:589:    */      #endif /* HAVE_NETTLE_ECDSA_H */      /*! @endmodule Nettle    */      void   hogweed_init(void)   { - #ifdef HAVE_NETTLE_ECDSA_H -  struct svalue c; - #endif -  +     INIT;   }      void   hogweed_exit(void)   {    EXIT;   }      #endif