Ship BouncyCastle in the .war files.
Per
https://www.bis.doc.gov/index.php/forms-documents/encryption/328-flowchart-2/file
open source crypto software can be self-classified as 5D002, and
requires only notification of the U.S. Bureau of Industry and
Security.
This registration has been performed by Google, as of Feb 15, 2017.
This gets rid of the special casing for BouncyCastle, simplifying our
build and deployment process.
Change-Id: I680b0a001e5e2e497ed6e62c90c8b8be30efff48
diff --git a/lib/bouncycastle/BUILD b/lib/bouncycastle/BUILD
index 4ec7fa0..efea418 100644
--- a/lib/bouncycastle/BUILD
+++ b/lib/bouncycastle/BUILD
@@ -1,44 +1,21 @@
-java_library(
- name = "bcprov",
- data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
- neverlink = 1,
- visibility = ["//visibility:public"],
- exports = ["@bcprov//jar"],
-)
java_library(
- name = "bcprov-without-neverlink",
- data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
+ name = "bcprov",
+ data = ["//lib:LICENSE-bouncycastle"],
visibility = ["//visibility:public"],
exports = ["@bcprov//jar"],
)
java_library(
name = "bcpg",
- data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
- neverlink = 1,
- visibility = ["//visibility:public"],
- exports = ["@bcpg//jar"],
-)
-
-java_library(
- name = "bcpg-without-neverlink",
- data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
+ data = ["//lib:LICENSE-bouncycastle"],
visibility = ["//visibility:public"],
exports = ["@bcpg//jar"],
)
java_library(
name = "bcpkix",
- data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
- neverlink = 1,
- visibility = ["//visibility:public"],
- exports = ["@bcpkix//jar"],
-)
-
-java_library(
- name = "bcpkix-without-neverlink",
- data = ["//lib:LICENSE-DO_NOT_DISTRIBUTE"],
+ data = ["//lib:LICENSE-bouncycastle"],
visibility = ["//visibility:public"],
exports = ["@bcpkix//jar"],
)