-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-naked-pointer-cipher
- Loading branch information
Showing
10 changed files
with
67 additions
and
29 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
(lang dune 2.7) | ||
|
||
(name ssl) | ||
(version 0.7.0) | ||
|
||
(generate_opam_files true) | ||
|
||
(source | ||
(github melange-re/melange)) | ||
(github savonet/ocaml-ssl)) | ||
|
||
(maintainers "Antonio Monteiro <[email protected]>") | ||
|
||
|
@@ -23,6 +24,7 @@ | |
(depends | ||
(ocaml | ||
(>= "4.03.0")) | ||
(ocaml (and :with_test (>= "4.08.0"))) | ||
dune-configurator | ||
conf-libssl | ||
(alcotest :with-test) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
version: "0.7.0" | ||
synopsis: "Bindings for OpenSSL" | ||
maintainer: ["Antonio Monteiro <[email protected]>"] | ||
authors: ["Samuel Mimram <[email protected]>"] | ||
|
@@ -9,6 +10,7 @@ bug-reports: "https://github.com/savonet/ocaml-ssl/issues" | |
depends: [ | ||
"dune" {>= "2.7"} | ||
"ocaml" {>= "4.03.0"} | ||
"ocaml" {with_test & >= "4.08.0"} | ||
"dune-configurator" | ||
"conf-libssl" | ||
"alcotest" {with-test} | ||
|
@@ -29,5 +31,4 @@ build: [ | |
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/melange-re/melange.git" | ||
depexts: [ "openssl" { with-test } ] | ||
dev-repo: "git+https://github.com/savonet/ocaml-ssl.git" |
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
open Alcotest | ||
open Ssl | ||
|
||
let test_init () = init () |> ignore | ||
|
||
(* This test is not super robust b/c `openssl` might not be installed or | ||
installed but linked to a different shared libary. For this reason, this test | ||
is only run in our internal github action CI. *) | ||
let test_version () = | ||
let ch = Unix.open_process_in "openssl version" in | ||
let m, n, p = | ||
Scanf.(bscanf (Scanning.from_channel ch)) "OpenSSL %d.%d.%d" (fun x y z -> | ||
x, y, z) | ||
in | ||
Unix.close_process_in ch |> ignore; | ||
check int "major" m Ssl.native_library_version.major; | ||
check int "minor" n Ssl.native_library_version.minor; | ||
check int "patch" p Ssl.native_library_version.patch | ||
|
||
let () = | ||
Alcotest.run | ||
"Ssl version" | ||
[ ( "Version" | ||
, [ test_case "Test init" `Quick test_init | ||
; test_case "Test version" `Quick test_version | ||
] ) | ||
] |