Fix jdk.crypto.ucrypto. ihse-jdk-library-branch
authorihse
Fri, 20 Apr 2018 21:22:05 +0200
branchihse-jdk-library-branch
changeset 56470 b7c046a37c7e
parent 56469 23eaafae6167
child 56471 49f42d6a981f
Fix jdk.crypto.ucrypto.
make/lib/Lib-jdk.crypto.ucrypto.gmk
src/jdk.crypto.ucrypto/solaris/native/libj2ucrypto/nativeCrypto.c
src/jdk.crypto.ucrypto/solaris/native/libj2ucrypto/nativeCryptoMD.c
--- a/make/lib/Lib-jdk.crypto.ucrypto.gmk	Fri Apr 20 20:59:02 2018 +0200
+++ b/make/lib/Lib-jdk.crypto.ucrypto.gmk	Fri Apr 20 21:22:05 2018 +0200
@@ -29,12 +29,12 @@
 
 ifeq ($(OPENJDK_TARGET_OS), solaris)
 
-#FIXME:LIBS - severly broken includes!
-
   $(eval $(call SetupJdkLibrary, BUILD_LIBJ2UCRYPTO, \
       NAME := j2ucrypto, \
       OPTIMIZATION := LOW, \
       CFLAGS := $(CFLAGS_JDKLIB), \
+      HEADER_FLAGS := \
+          -I$(call FindHeaderDirForModule, $(MODULE)), \
       LDFLAGS := $(LDFLAGS_JDKLIB), \
       LIBS := $(LIBDL), \
   ))
--- a/src/jdk.crypto.ucrypto/solaris/native/libj2ucrypto/nativeCrypto.c	Fri Apr 20 20:59:02 2018 +0200
+++ b/src/jdk.crypto.ucrypto/solaris/native/libj2ucrypto/nativeCrypto.c	Fri Apr 20 21:22:05 2018 +0200
@@ -30,6 +30,13 @@
 #include "jni_util.h"
 #include "nativeCrypto.h"
 #include "nativeFunc.h"
+#include "com_oracle_security_ucrypto_UcryptoProvider.h"
+#include "com_oracle_security_ucrypto_NativeDigest.h"
+#include "com_oracle_security_ucrypto_NativeCipher.h"
+#include "com_oracle_security_ucrypto_NativeKey.h"
+#include "com_oracle_security_ucrypto_NativeRSASignature.h"
+#include "com_oracle_security_ucrypto_NativeRSACipher.h"
+#include "com_oracle_security_ucrypto_NativeKey.h"
 
 /*
  * Dumps out byte array in hex with and name and length info
--- a/src/jdk.crypto.ucrypto/solaris/native/libj2ucrypto/nativeCryptoMD.c	Fri Apr 20 20:59:02 2018 +0200
+++ b/src/jdk.crypto.ucrypto/solaris/native/libj2ucrypto/nativeCryptoMD.c	Fri Apr 20 21:22:05 2018 +0200
@@ -30,7 +30,7 @@
 #include "jni_util.h"
 #include "nativeCrypto.h"
 #include "nativeFunc.h"
-
+#include "com_oracle_security_ucrypto_NativeDigestMD.h"
 
 extern void throwOutOfMemoryError(JNIEnv *env, const char *msg);
 extern jbyte* getBytes(JNIEnv *env, jbyteArray bytes, int offset, int len);