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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:333:      #include <nettle/ecdsa.h>      #define SECP192R1 0   #define SECP224R1 1   #define SECP256R1 2   #define SECP384R1 3   #define SECP521R1 4      #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_192R1 - static const struct ecc_curve *nettle_get_secp_192r1(void) { return nettle_secp_192r1; } + static const struct ecc_curve *nettle_get_secp_192r1(void) { +  return &nettle_secp_192r1; + }   #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_192R1 */   #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_224R1 - static const struct ecc_curve *nettle_get_secp_224r1(void) { return nettle_secp_224r1; } + static const struct ecc_curve *nettle_get_secp_224r1(void) { +  return &nettle_secp_224r1; + }   #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_224R1 */   #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_256R1 - static const struct ecc_curve *nettle_get_secp_256r1(void) { return nettle_secp_256r1; } + static const struct ecc_curve *nettle_get_secp_256r1(void) { +  return &nettle_secp_256r1; + }   #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_256R1 */   #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_384R1 - static const struct ecc_curve *nettle_get_secp_384r1(void) { return nettle_secp_384r1; } + static const struct ecc_curve *nettle_get_secp_384r1(void) { +  return &nettle_secp_384r1; + }   #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_384R1 */   #ifdef NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_521R1 - static const struct ecc_curve *nettle_get_secp_521r1(void) { return nettle_secp_521r1; } + static const struct ecc_curve *nettle_get_secp_521r1(void) { +  return &nettle_secp_521r1; + }   #endif /* NEED_WRAPPER_FOR_CURVE_NETTLE_SECP_521R1 */      #ifndef ecc_point_equal_p   static int ecc_point_equal_p(const struct ecc_point *a, const struct ecc_point *b)   {    return (a->ecc == b->ecc) && !mpn_cmp(a->p, b->p, ecc_size_a(a->ecc));   }   #endif      /*! @class ECC_Curve