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
New upstream version 1.15.2
- - - - -


6 changed files:

- CHANGES.md
- dune-project
- sha.opam
- sha1_stubs.c
- sha256_stubs.c
- sha512_stubs.c


Changes:

=====================================
CHANGES.md
=====================================
@@ -1,11 +1,6 @@
-## v1.15.1
+## v1.15.2
 
-Opam CI fixes by @MisterDA (#54):
-
-- update to Dune 2.9 to fix [lint 
warning](https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/8cf1e193733c6d6c0330b46c1a7b7a2819e9a977/variant/(lint));
-  > (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).)
-- define `Bytes_val` ourselves before OCaml 4.06;
-- add setup-ocaml GitHub action to catch mistakes earlier.
+- Use modern Bigarray functions by @MisterDA (#55)
 
 ## v1.15
 


=====================================
dune-project
=====================================
@@ -1,7 +1,7 @@
 (lang dune 2.9)
 
 (name sha)
-(version v1.15-5-gaf5c7b1)
+(version 1.15.2)
 
 (source (github djs55/ocaml-sha))
 


=====================================
sha.opam
=====================================
@@ -1,4 +1,4 @@
-version: "1.15.1"
+version: "1.15.2"
 # This file is generated by dune, edit dune-project instead
 opam-version: "2.0"
 synopsis: "Binding to the SHA cryptographic functions"


=====================================
sha1_stubs.c
=====================================
@@ -94,8 +94,8 @@ CAMLprim value stub_sha1_update_bigarray(value ctx, value buf)
 {
        CAMLparam2(ctx, buf);
        struct sha1_ctx ctx_dup;
-       unsigned char *data = Data_bigarray_val(buf);
-       size_t len = Bigarray_val(buf)->dim[0];
+       unsigned char *data = Caml_ba_data_val(buf);
+       size_t len = Caml_ba_array_val(buf)->dim[0];
 
        ctx_dup = *GET_CTX_STRUCT(ctx);
        caml_release_runtime_system();


=====================================
sha256_stubs.c
=====================================
@@ -93,8 +93,8 @@ CAMLprim value stub_sha256_update_bigarray(value ctx, value 
buf)
 {
        CAMLparam2(ctx, buf);
        struct sha256_ctx ctx_dup;
-       unsigned char *data = Data_bigarray_val(buf);
-       size_t len = Bigarray_val(buf)->dim[0];
+       unsigned char *data = Caml_ba_data_val(buf);
+       size_t len = Caml_ba_array_val(buf)->dim[0];
 
        ctx_dup = *GET_CTX_STRUCT(ctx);
        caml_release_runtime_system();


=====================================
sha512_stubs.c
=====================================
@@ -93,8 +93,8 @@ CAMLprim value stub_sha512_update_bigarray(value ctx, value 
buf)
 {
        CAMLparam2(ctx, buf);
        struct sha512_ctx ctx_dup;
-       unsigned char *data = Data_bigarray_val(buf);
-       size_t len = Bigarray_val(buf)->dim[0];
+       unsigned char *data = Caml_ba_data_val(buf);
+       size_t len = Caml_ba_array_val(buf)->dim[0];
 
        ctx_dup = *GET_CTX_STRUCT(ctx);
        caml_release_runtime_system();



View it on GitLab: 
https://salsa.debian.org/ocaml-team/ocaml-sha/-/commit/e9ef02c09673aa9327739498a532da1465999359

-- 
View it on GitLab: 
https://salsa.debian.org/ocaml-team/ocaml-sha/-/commit/e9ef02c09673aa9327739498a532da1465999359
You're receiving this email because of your account on salsa.debian.org.


Reply via email to