-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name = "OpenSSL_jll" | ||
uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95" | ||
version = "3.0.13+0" | ||
|
||
[deps] | ||
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb" | ||
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" | ||
|
||
[compat] | ||
julia = "1.6" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
||
[targets] | ||
test = ["Test"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This file is a part of Julia. License is MIT: https://julialang.org/license | ||
|
||
## dummy stub for https://github.com/JuliaBinaryWrappers/OpenSSL_jll.jl | ||
|
||
baremodule OpenSSL_jll | ||
using Base, Libdl | ||
|
||
const PATH_list = String[] | ||
const LIBPATH_list = String[] | ||
|
||
export libcrypto, libssl | ||
|
||
# These get calculated in __init__() | ||
const PATH = Ref("") | ||
const LIBPATH = Ref("") | ||
artifact_dir::String = "" | ||
libcrypto_handle::Ptr{Cvoid} = C_NULL | ||
libcrypto_path::String = "" | ||
libssl_handle::Ptr{Cvoid} = C_NULL | ||
libssl_path::String = "" | ||
|
||
if Sys.iswindows() | ||
const libcrypto = "libcrypto.dll" | ||
const libssl = "libssl.dll" | ||
elseif Sys.isapple() | ||
const libcrypto = "@rpath/libcrypto.3.dylib" | ||
const libssl = "@rpath/libssl.3.dylib" | ||
else | ||
const libcrypto = "libcrypto.so.3" | ||
const libssl = "libssl.so.3" | ||
end | ||
|
||
function __init__() | ||
global libcrypto_handle = dlopen(libcrypto) | ||
global libcrypto_path = dlpath(libcrypto_handle) | ||
global libssl_handle = dlopen(libssl) | ||
global libssl_path = dlpath(libssl_handle) | ||
global artifact_dir = dirname(Sys.BINDIR) | ||
LIBPATH[] = dirname(libssl_path) | ||
push!(LIBPATH_list, LIBPATH[]) | ||
end | ||
|
||
# JLLWrappers API compatibility shims. Note that not all of these will really make sense. | ||
# For instance, `find_artifact_dir()` won't actually be the artifact directory, because | ||
# there isn't one. It instead returns the overall Julia prefix. | ||
is_available() = true | ||
find_artifact_dir() = artifact_dir | ||
dev_jll() = error("stdlib JLLs cannot be dev'ed") | ||
best_wrapper = nothing | ||
get_libcrypto_path() = libcrypto_path | ||
get_libssl_path() = libssl_path | ||
|
||
end # module OpenSSL_jll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file is a part of Julia. License is MIT: https://julialang.org/license | ||
|
||
using Test, Libdl, OpenSSL_jll | ||
|
||
@testset "OpenSSL_jll" begin | ||
major = ccall((:OPENSSL_version_major, libcrypto), Cuint, ()) | ||
minor = ccall((:OPENSSL_version_minor, libcrypto), Cuint, ()) | ||
patch = ccall((:OPENSSL_version_patch, libcrypto), Cuint, ()) | ||
@test VersionNumber(major, minor, patch) == v"3.0.13" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters