Stéphane Glondu pushed to branch upstream at Debian OCaml Maintainers / ocaml-sha
Commits:
-
e9ef02c0
by Stephane Glondu at 2022-03-04T15:26:22+01:00
6 changed files:
Changes:
1 | -## v1.15.1
|
|
1 | +## v1.15.2
|
|
2 | 2 | |
3 | -Opam CI fixes by @MisterDA (#54):
|
|
4 | - |
|
5 | -- update to Dune 2.9 to fix [lint warning](https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/8cf1e193733c6d6c0330b46c1a7b7a2819e9a977/variant/(lint));
|
|
6 | - > (lint) (failed: Warning in sha.1.15: Dubious use of 'dune subst'. 'dune subst' should always only be called with {dev} (i.e. ["dune" "subst"] {dev}) If your opam file has been autogenerated by dune, you need to upgrade your dune-project to at least (lang dune 2.7).)
|
|
7 | -- define `Bytes_val` ourselves before OCaml 4.06;
|
|
8 | -- add setup-ocaml GitHub action to catch mistakes earlier.
|
|
3 | +- Use modern Bigarray functions by @MisterDA (#55)
|
|
9 | 4 | |
10 | 5 | ## v1.15
|
11 | 6 |
1 | 1 | (lang dune 2.9)
|
2 | 2 | |
3 | 3 | (name sha)
|
4 | -(version v1.15-5-gaf5c7b1)
|
|
4 | +(version 1.15.2)
|
|
5 | 5 | |
6 | 6 | (source (github djs55/ocaml-sha))
|
7 | 7 |
1 | -version: "1.15.1"
|
|
1 | +version: "1.15.2"
|
|
2 | 2 | # This file is generated by dune, edit dune-project instead
|
3 | 3 | opam-version: "2.0"
|
4 | 4 | synopsis: "Binding to the SHA cryptographic functions"
|
... | ... | @@ -94,8 +94,8 @@ CAMLprim value stub_sha1_update_bigarray(value ctx, value buf) |
94 | 94 | {
|
95 | 95 | CAMLparam2(ctx, buf);
|
96 | 96 | struct sha1_ctx ctx_dup;
|
97 | - unsigned char *data = Data_bigarray_val(buf);
|
|
98 | - size_t len = Bigarray_val(buf)->dim[0];
|
|
97 | + unsigned char *data = Caml_ba_data_val(buf);
|
|
98 | + size_t len = Caml_ba_array_val(buf)->dim[0];
|
|
99 | 99 | |
100 | 100 | ctx_dup = *GET_CTX_STRUCT(ctx);
|
101 | 101 | caml_release_runtime_system();
|
... | ... | @@ -93,8 +93,8 @@ CAMLprim value stub_sha256_update_bigarray(value ctx, value buf) |
93 | 93 | {
|
94 | 94 | CAMLparam2(ctx, buf);
|
95 | 95 | struct sha256_ctx ctx_dup;
|
96 | - unsigned char *data = Data_bigarray_val(buf);
|
|
97 | - size_t len = Bigarray_val(buf)->dim[0];
|
|
96 | + unsigned char *data = Caml_ba_data_val(buf);
|
|
97 | + size_t len = Caml_ba_array_val(buf)->dim[0];
|
|
98 | 98 | |
99 | 99 | ctx_dup = *GET_CTX_STRUCT(ctx);
|
100 | 100 | caml_release_runtime_system();
|
... | ... | @@ -93,8 +93,8 @@ CAMLprim value stub_sha512_update_bigarray(value ctx, value buf) |
93 | 93 | {
|
94 | 94 | CAMLparam2(ctx, buf);
|
95 | 95 | struct sha512_ctx ctx_dup;
|
96 | - unsigned char *data = Data_bigarray_val(buf);
|
|
97 | - size_t len = Bigarray_val(buf)->dim[0];
|
|
96 | + unsigned char *data = Caml_ba_data_val(buf);
|
|
97 | + size_t len = Caml_ba_array_val(buf)->dim[0];
|
|
98 | 98 | |
99 | 99 | ctx_dup = *GET_CTX_STRUCT(ctx);
|
100 | 100 | caml_release_runtime_system();
|