# HG changeset patch # User weijun # Date 1543192069 -28800 # Node ID 7a16ce664d851d30bebb7c655323604893a0e466 # Parent 30a02b4e6c06e874ec8735dedb7e894844b1d627 8214262: SunEC native code does not compile with debug on Reviewed-by: jnimeh diff -r 30a02b4e6c06 -r 7a16ce664d85 src/jdk.crypto.ec/share/native/libsunec/impl/ec.c --- a/src/jdk.crypto.ec/share/native/libsunec/impl/ec.c Sat Nov 24 01:05:11 2018 +0100 +++ b/src/jdk.crypto.ec/share/native/libsunec/impl/ec.c Mon Nov 26 08:27:49 2018 +0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * * This library is free software; you can redistribute it and/or @@ -43,11 +43,11 @@ #include #ifndef _KERNEL +#include #include #include #ifndef _WIN32 -#include #include #endif /* _WIN32 */ @@ -109,16 +109,16 @@ printf("\n"); if (k1 != NULL) { - mp_tohex(k1, mpstr); + mp_tohex((mp_int*)k1, mpstr); printf("ec_points_mul: scalar k1: %s\n", mpstr); - mp_todecimal(k1, mpstr); + mp_todecimal((mp_int*)k1, mpstr); printf("ec_points_mul: scalar k1: %s (dec)\n", mpstr); } if (k2 != NULL) { - mp_tohex(k2, mpstr); + mp_tohex((mp_int*)k2, mpstr); printf("ec_points_mul: scalar k2: %s\n", mpstr); - mp_todecimal(k2, mpstr); + mp_todecimal((mp_int*)k2, mpstr); printf("ec_points_mul: scalar k2: %s (dec)\n", mpstr); } diff -r 30a02b4e6c06 -r 7a16ce664d85 src/jdk.crypto.ec/share/native/libsunec/impl/ecdecode.c --- a/src/jdk.crypto.ec/share/native/libsunec/impl/ecdecode.c Sat Nov 24 01:05:11 2018 +0100 +++ b/src/jdk.crypto.ec/share/native/libsunec/impl/ecdecode.c Mon Nov 26 08:27:49 2018 +0800 @@ -49,6 +49,7 @@ #ifdef _KERNEL #include #else +#include #include #endif #include "ec.h"