|
10 | 10 | #ifndef __PTRAUTH_H
|
11 | 11 | #define __PTRAUTH_H
|
12 | 12 |
|
13 |
| -#include <stdint.h> |
14 |
| - |
15 | 13 | typedef enum {
|
16 | 14 | ptrauth_key_asia = 0,
|
17 | 15 | ptrauth_key_asib = 1,
|
@@ -126,7 +124,7 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t;
|
126 | 124 |
|
127 | 125 | The first argument must be an expression of pointer type.
|
128 | 126 | The second argument must be an expression of integer type.
|
129 |
| - The result will have type uintptr_t. */ |
| 127 | + The result will have type ptrauth_extra_data_t. */ |
130 | 128 | #define ptrauth_blend_discriminator(__pointer, __integer) \
|
131 | 129 | __builtin_ptrauth_blend_discriminator(__pointer, __integer)
|
132 | 130 |
|
@@ -260,7 +258,7 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t;
|
260 | 258 | if the arguments were a pointer and a discriminator.
|
261 | 259 |
|
262 | 260 | The arguments must be either pointers or integers; if integers, they
|
263 |
| - will be coerce to uintptr_t. */ |
| 261 | + will be coerce to ptrauth_extra_data_t. */ |
264 | 262 | #define ptrauth_sign_generic_data(__value, __data) \
|
265 | 263 | __builtin_ptrauth_sign_generic_data(__value, __data)
|
266 | 264 |
|
@@ -349,8 +347,8 @@ typedef __UINTPTR_TYPE__ ptrauth_generic_signature_t;
|
349 | 347 |
|
350 | 348 | #define ptrauth_sign_constant(__value, __key, __data) __value
|
351 | 349 | #define ptrauth_auth_function(__value, __old_key, __old_data) __value
|
352 |
| -#define ptrauth_string_discriminator(__string) ((uintptr_t)0) |
353 |
| -#define ptrauth_type_discriminator(__type) ((uintptr_t)0) |
| 350 | +#define ptrauth_string_discriminator(__string) ((ptrauth_extra_data_t)0) |
| 351 | +#define ptrauth_type_discriminator(__type) ((ptrauth_extra_data_t)0) |
354 | 352 |
|
355 | 353 | #define __ptrauth_function_pointer
|
356 | 354 | #define __ptrauth_return_address
|
|
0 commit comments