Skip to content

Commit

Permalink
Merge pull request #89 from corretto/develop
Browse files Browse the repository at this point in the history
Prepare for 1.3.1 release
  • Loading branch information
SalusaSecondus authored Mar 5, 2020
2 parents e612563 + 2c68c43 commit 7472f26
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 1.3.1

### Maintenance
* Add timestamping to signed jars. [PR #85](https://github.com/corretto/amazon-corretto-crypto-provider/pull/85)
* Create the `Janitor` in the `Loader` so that it gets a more logical and consistent `ThreadGroup`. [PR #87](https://github.com/corretto/amazon-corretto-crypto-provider/pull/87)
* Signed with new JCE signing certificate

## 1.3.0

### Improvements
Expand Down
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = 'software.amazon.cryptools'
version = '1.3.0'
version = '1.3.1'

configurations {
jacocoAgent
Expand Down Expand Up @@ -128,7 +128,8 @@ task build(overwrite:true) {
jar: "${buildDir}/cmake/AmazonCorrettoCryptoProvider.jar",
destDir: "${buildDir}/lib",
storepass: jcecertPassword,
keystore: "${project.gradle.gradleUserHomeDir}/${jcecertJks}"
keystore: "${project.gradle.gradleUserHomeDir}/${jcecertJks}",
tsaurl: "http://timestamp.digicert.com"
)
} else {
copy {
Expand Down
2 changes: 1 addition & 1 deletion csrc/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class EC_GROUP_auto {
group = EC_GROUP_new_by_curve_name(nid);
}
~EC_GROUP_auto() {
EC_GROUP_clear_free(group);
EC_GROUP_free(group);
}
operator EC_GROUP*() {return group; }
operator const EC_GROUP*() const { return group; }
Expand Down
5 changes: 5 additions & 0 deletions src/com/amazon/corretto/crypto/provider/Loader.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,16 @@ static String getProperty(String propertyName, String def) {
} else {
LOG.log(Level.CONFIG, "Unable to load native library", error);
}

// Finally start up a cleaning thread if necessary
RESOURCE_JANITOR = new Janitor();
}

static final boolean IS_AVAILABLE;
static final Throwable LOADING_ERROR;

static final Janitor RESOURCE_JANITOR;

static void load() {
// no-op - but we run the static block as a side effect
}
Expand Down
4 changes: 2 additions & 2 deletions src/com/amazon/corretto/crypto/provider/NativeResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

package com.amazon.corretto.crypto.provider;

import static com.amazon.corretto.crypto.provider.Loader.RESOURCE_JANITOR;

import java.util.concurrent.locks.ReentrantLock;
import java.util.function.LongConsumer;
import java.util.function.LongFunction;

class NativeResource {
private static final Janitor RESOURCE_JANITOR = new Janitor();

/**
* For tests. Makes a best-effort attempt to awaken any sleeping cleaner threads.
*/
Expand Down

0 comments on commit 7472f26

Please sign in to comment.