Skip to content

Commit

Permalink
Merge pull request #22 from hannesm/mirage-crypto-0.8.9
Browse files Browse the repository at this point in the history
Adapt test to mirage-crypto-pk 0.8.9 (where `d` is different)
  • Loading branch information
hannesm authored Jan 21, 2021
2 parents b33cd31 + 929641f commit 7a76883
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ env:
- DISTRO=alpine
- TESTS=true
matrix:
- OCAML_VERSION=4.07
- OCAML_VERSION=4.08
- OCAML_VERSION=4.09
- OCAML_VERSION=4.10
- OCAML_VERSION=4.11
notifications:
email: false
3 changes: 2 additions & 1 deletion letsencrypt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ homepage: "https://github.com/mmaker/ocaml-letsencrypt"
bug-reports: "https://github.com/mmaker/ocaml-letsencrypt/issues"
doc: "https://mmaker.github.io/ocaml-letsencrypt"
depends: [
"ocaml" {>= "4.07.0"}
"ocaml" {>= "4.08.0"}
"dune" {>= "1.2.0"}
"astring"
"rresult"
Expand All @@ -24,6 +24,7 @@ depends: [
"lwt" {>= "2.6.0"}
"mirage-crypto"
"mirage-crypto-pk"
"mirage-crypto-pk" {with-test & >= "0.8.9"}
"mirage-crypto-rng"
"x509" {>= "0.11.0"}
"yojson" {>= "1.6.0"}
Expand Down
55 changes: 28 additions & 27 deletions test/jws_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,34 @@ open OUnit2
open Letsencrypt__Acme_common

let testkey_pem = "
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEA4xgZ3eRPkwoRvy7qeRUbmMDe0V+xH9eWLdu0iheeLlrmD2mq
WXfP9IeSKApbn34g8TuAS9g5zhq8ELQ3kmjr+KV86GAMgI6VAcGlq3QrzpTCf/30
Ab7+zawrfRaFONa1HwEzPY1KHnGVkxJc85gNkwYI9SY2RHXtvln3zs5wIT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