Skip to content

Commit 2744e6e

Browse files
committed
secp256k1.h: clarify that by default arguments must be != NULL
The same file says that the illegal callback will only triger for violations explicitly mentioned, which is not true without this commit because we often don't mention that an argument is not allowed to be NULL.
1 parent efad350 commit 2744e6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/secp256k1.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ extern "C" {
77

88
#include <stddef.h>
99

10+
/* Unless explicitly stated all pointer arguments must not be NULL. */
11+
1012
/* These rules specify the order of arguments in API calls:
1113
*
1214
* 1. Context pointers go first, followed by output arguments, combined

0 commit comments

Comments
 (0)