mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-05-09 11:14:26 +02:00
Fix missing-prototype errors in sample programs
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
committed by
Minos Galanakis
parent
41a686bb9f
commit
6fa32fd12d
@@ -82,7 +82,7 @@ const unsigned char key_bytes[32] = { 0 };
|
||||
* This function demonstrates computation of the HMAC of two messages using
|
||||
* the multipart API.
|
||||
*/
|
||||
psa_status_t hmac_demo(void)
|
||||
static psa_status_t hmac_demo(void)
|
||||
{
|
||||
psa_status_t status;
|
||||
const psa_algorithm_t alg = PSA_ALG_HMAC(PSA_ALG_SHA_256);
|
||||
|
||||
@@ -192,7 +192,7 @@ typedef enum {
|
||||
TYPE_STATUS,
|
||||
} signed_value_type;
|
||||
|
||||
int process_signed(signed_value_type type, long min, long max, char **argp)
|
||||
static int process_signed(signed_value_type type, long min, long max, char **argp)
|
||||
{
|
||||
for (; *argp != NULL; argp++) {
|
||||
char buffer[200];
|
||||
@@ -231,7 +231,7 @@ typedef enum {
|
||||
TYPE_KEY_USAGE,
|
||||
} unsigned_value_type;
|
||||
|
||||
int process_unsigned(unsigned_value_type type, unsigned long max, char **argp)
|
||||
static int process_unsigned(unsigned_value_type type, unsigned long max, char **argp)
|
||||
{
|
||||
for (; *argp != NULL; argp++) {
|
||||
char buffer[200];
|
||||
|
||||
Reference in New Issue
Block a user