Skip to content

Commit 066a14c

Browse files
authored
Merge pull request #1961 from input-output-hk/rustls-switch
switch to rustls from openssl
2 parents fe4eb6c + 3cf60d9 commit 066a14c

File tree

7 files changed

+85
-94
lines changed

7 files changed

+85
-94
lines changed

Cargo.lock

Lines changed: 62 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ rustc --version # if this fails, try a new command window, or add the path (see
3939
* Homebrew on macOS.
4040
* `vcpkg` on Windows.
4141
* `pkg-config` on other Unix-like systems.
42-
* OpenSSL with header files.
4342
* C compiler (see [cc-rs](https://github.com/alexcrichton/cc-rs) for more details):
4443
* Must be available as `cc` on Unix and MinGW.
4544
* Or as `cl.exe` on Windows.

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN if [ "${ENV_BUILD}" = "false" ]; then \
3535
# install the node and jcli from source
3636
RUN if [ "${ENV_BUILD}" = "true" ]; then \
3737
echo "[INFO] - you have selected to build and install from source" && \
38-
apt-get install -y build-essential pkg-config libssl-dev && \
38+
apt-get install -y build-essential pkg-config && \
3939
bash -c "curl https://sh.rustup.rs -sSf | bash -s -- -y" && \
4040
export PATH=$HOME/.cargo/bin:$PATH && \
4141
rustup install stable && \
@@ -51,8 +51,8 @@ RUN if [ "${ENV_BUILD}" = "true" ]; then \
5151
# cleanup
5252
RUN rm -rf ${ENV_PREFIX}/src && \
5353
RM_ME=`apt-mark showauto` && \
54-
apt-get remove --purge --auto-remove -y git curl build-essential pkg-config libssl-dev ${RM_ME} && \
55-
apt-get install -y --no-install-recommends libssl1.1 && \
54+
apt-get remove --purge --auto-remove -y git curl build-essential pkg-config ${RM_ME} && \
55+
apt-get install -y --no-install-recommends && \
5656
apt-get clean && \
5757
rm -rf /var/lib/apt/lists/*
5858

jcli/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ chain-impl-mockchain = { path = "../chain-deps/chain-impl-mockchain" }
2929
chain-addr = { path = "../chain-deps/chain-addr" }
3030
chain-crypto = { path = "../chain-deps/chain-crypto" }
3131
chain-time = { path = "../chain-deps/chain-time" }
32-
reqwest = "0.9.11"
3332
jormungandr-lib = { path = "../jormungandr-lib" }
3433
gtmpl = "0.5.6"
3534
openapiv3 = "0.3.0"
@@ -42,6 +41,11 @@ version = "2.32"
4241
default-features = false
4342
features = [ "suggestions", "color", "wrap_help" ]
4443

44+
[dependencies.reqwest]
45+
version = "0.9"
46+
features = ["rustls-tls"]
47+
default-features = false
48+
4549
[dev-dependencies]
4650
maplit = "1.0.2"
4751
mktemp = "0.4.0"

jormungandr-integration-tests/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ jormungandr = { path = "../jormungandr" }
3939
jcli = { path = "../jcli" }
4040
poldercast = "0.11.4"
4141
thiserror = "1.0"
42-
reqwest = "0.9.24"
42+
43+
[dependencies.reqwest]
44+
version = "0.9"
45+
features = ["rustls-tls"]
46+
default-features = false
4347

4448
[dev-dependencies]
4549
chain-core = { path = "../chain-deps/chain-core", features=["property-test-api"]}

jormungandr-scenario-tests/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ bawawa = "0.1.5"
1212
bytes = "0.4"
1313
error-chain = "0.12"
1414
tokio = "0.1"
15-
reqwest = "0.9"
1615
mktemp = "0.4.0"
1716
chain-core = { path = "../chain-deps/chain-core", features = [ "property-test-api" ] }
1817
chain-crypto = { path = "../chain-deps/chain-crypto", features = [ "property-test-api" ] }
@@ -35,3 +34,8 @@ hex = "0.4"
3534
console = "0.10"
3635
indicatif = "0.14"
3736
lazy_static = "1"
37+
38+
[dependencies.reqwest]
39+
version = "0.9"
40+
features = ["rustls-tls"]
41+
default-features = false

jormungandr/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ tokio02 = { package = "tokio", version = "0.2.12", features = ["full"]}
6464
tokio-threadpool = "0.1"
6565
bech32 = "0.7"
6666
async-trait = "0.1"
67-
reqwest = "0.10"
6867
lru = "^0.4.3"
6968

69+
[dependencies.reqwest]
70+
version = "0.10"
71+
features = ["rustls-tls"]
72+
default-features = false
73+
7074
[dev-dependencies]
7175
chain-core = { path = "../chain-deps/chain-core", features=["property-test-api"]}
7276
chain-crypto = { path = "../chain-deps/chain-crypto", features=["property-test-api"] }

0 commit comments

Comments
 (0)