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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:1:   /* -*- mode: c; encoding: utf-8; -*-   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information.   */    - #include "global.h" + #include "module.h"   #include "pike_compiler.h"   #include "builtin_functions.h"   #include "operators.h"   #include "interpret.h" - #include "module.h" - #include "mapping.h" - #include "stralloc.h" +    #include "constants.h"      #include "nettle_config.h"      #ifdef HAVE_LIBHOGWEED      DECLARATIONS      #include "nettle.h"   #include <nettle/dsa.h>
pike.git/src/post_modules/Nettle/hogweed.cmod:388:    *! @endint    */    PIKEFUN void create(int(0..) curve)    flags ID_PROTECTED;    {    mpz_t mpz_one;       if (THIS->curve) {    Pike_error("The curve has already been initialized!\n");    } +  pop_stack();       switch(curve) {   #ifdef HAVE_CURVE_NETTLE_SECP_192R1    case SECP192R1: THIS->curve = &nettle_secp_192r1; break;   #endif /* HAVE_CURVE_NETTLE_SECP_192R1 */   #ifdef HAVE_CURVE_NETTLE_SECP_224R1    case SECP224R1: THIS->curve = &nettle_secp_224r1; break;   #endif /* HAVE_CURVE_NETTLE_SECP_224R1 */   #ifdef HAVE_CURVE_NETTLE_SECP_256R1    case SECP256R1: THIS->curve = &nettle_secp_256r1; break;