Skip to content

Commit 2016cb2

Browse files
Merge pull request #42 from cconlon/v1.5prep
Prep for 1.5 Release
2 parents 675fdb2 + 040ad75 commit 2016cb2

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ files to be on your `JUNIT_HOME` path.
8989

9090
To install and set up JUnit:
9191

92-
a) Download "junit-4.13.jar" and "hamcrest-all-1.3.jar" from junit.org
92+
a) Download "junit-4.13.2.jar" and "hamcrest-all-1.3.jar" from junit.org
9393

9494
b) Place these JAR files on your system and set `JUNIT_HOME` to point to
9595
that location:
@@ -159,6 +159,17 @@ that requires JCE provider JAR's to be authenticated. Please see
159159
### Revision History
160160
---------
161161

162+
#### wolfCrypt JNI Release 1.5.0 (11/14/2022)
163+
164+
Release 1.5.0 of wolfCrypt JNI has bug fixes and new features including:
165+
166+
- Add build compatibility for Java 7 (PR 38)
167+
- Add support for "SHA" algorithm string in wolfJCE (PR 39)
168+
- Add rpm package support (PR 40)
169+
- Add wolfJCE MessageDigest.clone() support (PR 41)
170+
- Improve error checking of native Md5 API calls (PR 41)
171+
- Add unit tests for com.wolfssl.wolfcrypt.Md5 (PR 41)
172+
162173
#### wolfCrypt JNI Release 1.4.0 (08/11/2022)
163174

164175
Release 1.4.0 of wolfCrypt JNI has bug fixes and new features including:

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<!-- versioning/manifest properties -->
2020
<property name="implementation.vendor" value="wolfSSL Inc." />
2121
<property name="implementation.title" value="wolfCrypt JNI" />
22-
<property name="implementation.version" value="1.4" />
22+
<property name="implementation.version" value="1.5" />
2323

2424
<!-- set properties for this build -->
2525
<property name="src.dir" value="src/main/java/" />

jni/jni_md5.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
2020
*/
2121

22+
#include <stdint.h>
2223
#ifndef __ANDROID__
2324
#include <wolfssl/options.h>
2425
#endif
@@ -50,7 +51,7 @@ Java_com_wolfssl_wolfcrypt_Md5_mallocNativeStruct(
5051
jlong ret = 0;
5152

5253
#ifndef NO_MD5
53-
ret = (jlong) XMALLOC(sizeof(Md5), NULL, DYNAMIC_TYPE_TMP_BUFFER);
54+
ret = (jlong)(uintptr_t)XMALLOC(sizeof(Md5), NULL, DYNAMIC_TYPE_TMP_BUFFER);
5455

5556
if (!ret)
5657
throwOutOfMemoryException(env, "Failed to allocate Md5 object");

src/main/java/com/wolfssl/provider/jce/WolfCryptProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public final class WolfCryptProvider extends Provider {
3434
* Create new WolfCryptProvider object
3535
*/
3636
public WolfCryptProvider() {
37-
super("wolfJCE", 1.4, "wolfCrypt JCE Provider");
37+
super("wolfJCE", 1.5, "wolfCrypt JCE Provider");
3838

3939
/* MessageDigest */
4040
if (FeatureDetect.Md5Enabled()) {

0 commit comments

Comments
 (0)