Skip to content

Commit 6fb0fcb

Browse files
authored
Remove CAStore (#134)
1 parent 0ffa78c commit 6fb0fcb

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.12.2
4+
* Bug fixes
5+
* Removed `:castore` and introduced `:verify_none` to quiet warning and unblock escript usage, see [#133](https://github.com/nccgroup/sobelow/issues/133) for more context on why this is necessary
6+
37
## v0.12.1
48
* Bug fixes
59
* Lowered required version of `:castore` to remove upgrade path issues

lib/sobelow.ex

+4-5
Original file line numberDiff line numberDiff line change
@@ -548,13 +548,12 @@ defmodule Sobelow do
548548

549549
url = 'https://sobelow.io/version'
550550

551-
# Uses CAStore since we cannot use exclusively use OTP 25+ yet
552-
cacertfile = CAStore.file_path() |> String.to_charlist()
553-
554551
http_options = [
555552
ssl: [
556-
verify: :verify_peer,
557-
cacertfile: cacertfile
553+
verify: :verify_none
554+
# We cannot use exclusively use OTP 25+ yet, but when we can - uncomment the following few lines
555+
# verify: :verify_peer,
556+
# cacertfile: :public_key.cacerts_get()
558557
],
559558
timeout: 10000
560559
]

mix.exs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule Sobelow.Mixfile do
22
use Mix.Project
33

44
@source_url "https://github.com/nccgroup/sobelow"
5-
@version "0.12.1"
5+
@version "0.12.2"
66

77
def project do
88
[
@@ -28,8 +28,7 @@ defmodule Sobelow.Mixfile do
2828
defp deps do
2929
[
3030
{:ex_doc, "~> 0.20", only: :dev},
31-
{:jason, "~> 1.0"},
32-
{:castore, ">= 0.0.0"}
31+
{:jason, "~> 1.0"}
3332
]
3433
end
3534

mix.lock

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
%{
2-
"castore": {:hex, :castore, "1.0.0", "c25cd0794c054ebe6908a86820c8b92b5695814479ec95eeff35192720b71eec", [:mix], [], "hexpm", "577d0e855983a97ca1dfa33cbb8a3b6ece6767397ffb4861514343b078fc284b"},
3-
"earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm", "e3be2bc3ae67781db529b80aa7e7c49904a988596e2dbff897425b48b3581161"},
42
"earmark_parser": {:hex, :earmark_parser, "1.4.29", "149d50dcb3a93d9f3d6f3ecf18c918fb5a2d3c001b5d3305c926cddfbd33355b", [:mix], [], "hexpm", "4902af1b3eb139016aed210888748db8070b8125c2342ce3dcae4f38dcc63503"},
53
"ex_doc": {:hex, :ex_doc, "0.29.1", "b1c652fa5f92ee9cf15c75271168027f92039b3877094290a75abcaac82a9f77", [:mix], [{:earmark_parser, "~> 1.4.19", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "b7745fa6374a36daf484e2a2012274950e084815b936b1319aeebcf7809574f6"},
64
"jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"},

0 commit comments

Comments
 (0)