mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fix declaration/implementation mismatch
This commit is contained in:
parent
e269d9d548
commit
35fe8dad04
4
src/thirdparty/jwt/include/base64.h
vendored
4
src/thirdparty/jwt/include/base64.h
vendored
@ -51,7 +51,7 @@ extern "C" {
|
||||
*
|
||||
* @return Return code as defined in retcodes.h
|
||||
*/
|
||||
L8W8JWT_API int l8w8jwt_base64_encode(int url, const uint8_t* data, size_t data_length, char** out, size_t* out_length);
|
||||
L8W8JWT_API int l8w8jwt_base64_encode(const int url, const uint8_t* data, const size_t data_length, char** out, size_t* out_length);
|
||||
|
||||
/**
|
||||
* Decodes a base-64 encoded string to an array of bytes. <p>
|
||||
@ -68,7 +68,7 @@ L8W8JWT_API int l8w8jwt_base64_encode(int url, const uint8_t* data, size_t data_
|
||||
*
|
||||
* @return Return code as defined in retcodes.h
|
||||
*/
|
||||
L8W8JWT_API int l8w8jwt_base64_decode(int url, const char* data, size_t data_length, uint8_t** out, size_t* out_length);
|
||||
L8W8JWT_API int l8w8jwt_base64_decode(const int url, const char* data, const size_t data_length, uint8_t** out, size_t* out_length);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
6
src/thirdparty/jwt/include/claim.h
vendored
6
src/thirdparty/jwt/include/claim.h
vendored
@ -117,7 +117,7 @@ struct l8w8jwt_claim
|
||||
* @param claims The claims to free.
|
||||
* @param claims_count The size of the passed claims array.
|
||||
*/
|
||||
L8W8JWT_API void l8w8jwt_free_claims(struct l8w8jwt_claim* claims, size_t claims_count);
|
||||
L8W8JWT_API void l8w8jwt_free_claims(struct l8w8jwt_claim* claims, const size_t claims_count);
|
||||
|
||||
/**
|
||||
* Writes a bunch of JWT claims into a chillbuff stringbuilder. <p>
|
||||
@ -127,7 +127,7 @@ L8W8JWT_API void l8w8jwt_free_claims(struct l8w8jwt_claim* claims, size_t claims
|
||||
* @param claims_count The claims array size.
|
||||
* @return Return code as specified inside retcodes.h
|
||||
*/
|
||||
L8W8JWT_API int l8w8jwt_write_claims(struct chillbuff* stringbuilder, struct l8w8jwt_claim* claims, size_t claims_count);
|
||||
L8W8JWT_API int l8w8jwt_write_claims(struct chillbuff* stringbuilder, struct l8w8jwt_claim* claims, const size_t claims_count);
|
||||
|
||||
/**
|
||||
* Gets a claim by key from a l8w8jwt_claim array.
|
||||
@ -137,7 +137,7 @@ L8W8JWT_API int l8w8jwt_write_claims(struct chillbuff* stringbuilder, struct l8w
|
||||
* @param key_length The claim key's string length.
|
||||
* @return The found claim; <code>NULL</code> if no such claim was found in the array.
|
||||
*/
|
||||
L8W8JWT_API struct l8w8jwt_claim* l8w8jwt_get_claim(struct l8w8jwt_claim* claims, size_t claims_count, const char* key, size_t key_length);
|
||||
L8W8JWT_API struct l8w8jwt_claim* l8w8jwt_get_claim(struct l8w8jwt_claim* claims, const size_t claims_count, const char* key, const size_t key_length);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
2
src/thirdparty/jwt/include/util.h
vendored
2
src/thirdparty/jwt/include/util.h
vendored
@ -40,7 +40,7 @@ extern "C" {
|
||||
* @param output_length [OPTIONAL] Where to write the output array length into. This is always gonna be <c>hexstr_length / 2</c>, but you can still choose to write it out just to be sure. If you want to omit this: no problem.. just pass <c>NULL</c>!
|
||||
* @return <c>0</c> if conversion succeeded. <c>1</c> if one or more required arguments were <c>NULL</c> or invalid. <c>2</c> if the hexadecimal string is in an invalid format (e.g. not divisible by 2). <c>3</c> if output buffer size was insufficient (needs to be at least <c>(hexstr_length / 2) + 1</c> bytes).
|
||||
*/
|
||||
L8W8JWT_API int l8w8jwt_hexstr2bin(const char* hexstr, size_t hexstr_length, unsigned char* output, size_t output_size, size_t* output_length);
|
||||
L8W8JWT_API int l8w8jwt_hexstr2bin(const char* hexstr, const size_t hexstr_length, unsigned char* output, const size_t output_size, size_t* output_length);
|
||||
|
||||
/**
|
||||
* Compares two strings ignoring UPPER vs. lowercase.
|
||||
|
3
src/thirdparty/mbedtls/asn1parse.c
vendored
3
src/thirdparty/mbedtls/asn1parse.c
vendored
@ -377,9 +377,10 @@ static int asn1_get_sequence_of_cb(void *ctx,
|
||||
int mbedtls_asn1_get_sequence_of(unsigned char **p,
|
||||
const unsigned char *end,
|
||||
mbedtls_asn1_sequence *cur,
|
||||
int tag)
|
||||
const int tag)
|
||||
{
|
||||
asn1_get_sequence_of_cb_ctx_t cb_ctx = { tag, cur };
|
||||
|
||||
memset(cur, 0, sizeof(mbedtls_asn1_sequence));
|
||||
return mbedtls_asn1_traverse_sequence_of(
|
||||
p, end, 0xFF, tag, 0, 0,
|
||||
|
@ -410,7 +410,7 @@ int mbedtls_asn1_get_bitstring_null(unsigned char **p,
|
||||
int mbedtls_asn1_get_sequence_of(unsigned char **p,
|
||||
const unsigned char *end,
|
||||
mbedtls_asn1_sequence *cur,
|
||||
int tag);
|
||||
const int tag);
|
||||
/**
|
||||
* \brief Free a heap-allocated linked list presentation of
|
||||
* an ASN.1 sequence, including the first element.
|
||||
|
Loading…
x
Reference in New Issue
Block a user