Skip to content

Commit eab603b

Browse files
tchardingDavidson-Souza
authored andcommitted
secp256k1-sys: update patchfiles for upcoming libsecp v0.4.0 update
Update the `util.h.patch` and `secp256k1.h.patch` files in preparation for running the vendor script. Done by guess work.
1 parent 186b643 commit eab603b

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed
+19-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
1-
279,281d278
1+
236d235
2+
< SECP256K1_API const secp256k1_context *secp256k1_context_static;
3+
239,240d237
4+
< SECP256K1_API const secp256k1_context *secp256k1_context_no_precomp
5+
< SECP256K1_DEPRECATED("Use secp256k1_context_static instead");
6+
286,289d282
27
< SECP256K1_API secp256k1_context *secp256k1_context_create(
38
< unsigned int flags
49
< ) SECP256K1_WARN_UNUSED_RESULT;
5-
295,297d291
10+
<
11+
302,305d294
612
< SECP256K1_API secp256k1_context *secp256k1_context_clone(
713
< const secp256k1_context *ctx
814
< ) SECP256K1_ARG_NONNULL(1) SECP256K1_WARN_UNUSED_RESULT;
9-
313,315d306
15+
<
16+
320,323d308
1017
< SECP256K1_API void secp256k1_context_destroy(
1118
< secp256k1_context *ctx
1219
< ) SECP256K1_ARG_NONNULL(1);
13-
395,398d385
20+
<
21+
402,406d386
1422
< SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space *secp256k1_scratch_space_create(
1523
< const secp256k1_context *ctx,
1624
< size_t size
1725
< ) SECP256K1_ARG_NONNULL(1);
18-
406,409d392
26+
<
27+
413,417d392
1928
< SECP256K1_API void secp256k1_scratch_space_destroy(
2029
< const secp256k1_context *ctx,
2130
< secp256k1_scratch_space *scratch
2231
< ) SECP256K1_ARG_NONNULL(1);
32+
<
33+
636d610
34+
< SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_rfc6979;
35+
639d612
36+
< SECP256K1_API const secp256k1_nonce_function secp256k1_nonce_function_default;

secp256k1-sys/depend/util.h.patch

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
134,149d133
1+
147,154d146
22
< static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_t size) {
33
< void *ret = malloc(size);
44
< if (ret == NULL) {
@@ -7,11 +7,3 @@
77
< return ret;
88
< }
99
<
10-
< static SECP256K1_INLINE void *checked_realloc(const secp256k1_callback* cb, void *ptr, size_t size) {
11-
< void *ret = realloc(ptr, size);
12-
< if (ret == NULL) {
13-
< secp256k1_callback_call(cb, "Out of memory");
14-
< }
15-
< return ret;
16-
< }
17-
<

0 commit comments

Comments
 (0)