Skip to content

Commit 51dab7a

Browse files
committed
vendor-libsecp: remove util.h patch
This patch adds a declaration of the `ecdsa_parse_compact` function to util.h. This function isn't called from within libsecp proper; it is called in lax_der_parse.c (which we patch separately with a declaration) and in example code (which we don't compile at all).
1 parent fe2905d commit 51dab7a

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

secp256k1-sys/depend/secp256k1/src/util.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
#define SECP256K1_UTIL_H
99

1010
#include "../include/secp256k1.h"
11-
extern int rustsecp256k1_v0_9_0_ecdsa_signature_parse_compact(
12-
const rustsecp256k1_v0_9_0_context *ctx,
13-
rustsecp256k1_v0_9_0_ecdsa_signature *sig, const unsigned char *input64);
11+
1412
#include <stdlib.h>
1513
#include <stdint.h>
1614
#include <stdio.h>

secp256k1-sys/depend/util.h.patch

Lines changed: 0 additions & 6 deletions
This file was deleted.

secp256k1-sys/vendor-libsecp.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ echo "$SOURCE_REV" >> ./secp256k1-HEAD-revision.txt
9797
patch "$DIR/include/secp256k1.h" "./secp256k1.h.patch"
9898
patch "$DIR/src/secp256k1.c" "./secp256k1.c.patch"
9999
patch "$DIR/src/scratch_impl.h" "./scratch_impl.h.patch"
100-
patch "$DIR/src/util.h" "./util.h.patch"
101100

102101
# Fix a linking error while cross-compiling to windowns with mingw
103102
patch "$DIR/contrib/lax_der_parsing.c" "./lax_der_parsing.c.patch"

0 commit comments

Comments
 (0)