scan-build: Using '/usr/lib/llvm-7/bin/clang' for static analysis CC util/src/stir_shaken_ca-stir_shaken_ca.o CC util/src/stir_shaken_ca-mongoose.o CC util/src/stirshaken-stir_shaken_tool_command.o CC util/src/stirshaken-stir_shaken_tool.o CC util/src/stirshaken-stir_shaken_ca.o CC util/src/stirshaken-mongoose.o CC src/stir_shaken.lo CC src/stir_shaken_service.lo In file included from util/include/stir_shaken_tool.h:1, from util/src/stir_shaken_tool.c:1: include/stir_shaken.h: In function 'stir_shaken_load_x509_from_file_fullchain': include/stir_shaken.h:1282:31: error: storage class specified for parameter 'stir_shaken_make_http_req' extern stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1284:29: error: storage class specified for parameter 'stir_shaken_make_http_req_mock' extern stir_shaken_status_t stir_shaken_make_http_req_mock(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1319:3: error: storage class specified for parameter 'stir_shaken_as_settings_t' } stir_shaken_as_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1324:2: error: expected specifier-qualifier-list before 'stir_shaken_as_settings_t' stir_shaken_as_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1325:3: error: storage class specified for parameter 'stir_shaken_as_t' } stir_shaken_as_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1327:1: error: expected declaration specifiers before 'stir_shaken_as_t' stir_shaken_as_t* stir_shaken_as_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1328:29: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' void stir_shaken_as_destroy(stir_shaken_as_t **as); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1329:88: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_private_key(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *private_key_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1330:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *cert_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1332:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_passport(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1334:76: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_sih(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1335:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_install_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *where); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1357:3: error: storage class specified for parameter 'stir_shaken_vs_settings_t' } stir_shaken_vs_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1362:2: error: expected specifier-qualifier-list before 'stir_shaken_vs_settings_t' stir_shaken_vs_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1363:3: error: storage class specified for parameter 'stir_shaken_vs_t' } stir_shaken_vs_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1365:1: error: expected declaration specifiers before 'stir_shaken_vs_t' stir_shaken_vs_t* stir_shaken_vs_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1366:29: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' void stir_shaken_vs_destroy(stir_shaken_vs_t **vs); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1367:83: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_ca_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *ca_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1368:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_crl_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *crl_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1369:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_callback(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, stir_shaken_callback_t callback); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1370:96: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_x509_cert_path_check(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, uint8_t x); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1371:91: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_connect_timeout(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, unsigned long timeout_s); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1372:87: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_to_jwt_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, jwt_t **jwt_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1373:80: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1374:75: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_sih_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *sih, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1377:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_authenticate(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1421:16: error: storage class specified for parameter 'stir_shaken_hash_entry_destructor' typedef void (*stir_shaken_hash_entry_destructor)(void*); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1426:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_destructor' stir_shaken_hash_entry_destructor dctor; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1428:3: error: storage class specified for parameter 'stir_shaken_hash_entry_t' } stir_shaken_hash_entry_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1431:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_find(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1432:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_create(size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1433:37: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_entry_destroy(stir_shaken_hash_entry_t *e, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1434:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_add(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1435:52: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_hash_entry_remove(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1436:38: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy_branch(stir_shaken_hash_entry_t *entry, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1437:31: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy(stir_shaken_hash_entry_t **hash, size_t hashsize, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1473:3: error: storage class specified for parameter 'stir_shaken_sp_t' } stir_shaken_sp_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1486:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1489:3: error: storage class specified for parameter 'stir_shaken_ca_session_t' } stir_shaken_ca_session_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1507:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* sessions[STI_CA_SESSIONS_MAX]; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1516:3: error: storage class specified for parameter 'stir_shaken_ca_t' } stir_shaken_ca_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1523:3: error: storage class specified for parameter 'stir_shaken_pa_t' } stir_shaken_pa_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1525:92: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_key_trusted(stir_shaken_context_t *ss, EVP_PKEY *pkey, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1526:103: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_cert_trusted(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1528:87: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted(stir_shaken_context_t *ss, X509 *x, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1529:105: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted_from_file(stir_shaken_context_t *ss, char *file_name, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1532:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1533:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1536:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1537:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1538:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1539:76: error: expected declaration specifiers or '...' before 'stir_shaken_pa_t' stir_shaken_status_t stir_shaken_run_pa_service(stir_shaken_context_t *ss, stir_shaken_pa_t *pa); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1541:29: error: expected declaration specifiers or '...' before 'stir_shaken_sp_t' void stir_shaken_sp_destroy(stir_shaken_sp_t *sp); ^~~~~~~~~~~~~~~~ In file included from util/include/stir_shaken_tool.h:3, from util/src/stir_shaken_tool.c:1: /usr/include/x86_64-linux-gnu/sys/mman.h:57:14: error: storage class specified for parameter 'mmap' extern void *mmap (void *__addr, size_t __len, int __prot, ^~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:76:12: error: storage class specified for parameter 'munmap' extern int munmap (void *__addr, size_t __len) __THROW; ^~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:81:12: error: storage class specified for parameter 'mprotect' extern int mprotect (void *__addr, size_t __len, int __prot) __THROW; ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:89:12: error: storage class specified for parameter 'msync' extern int msync (void *__addr, size_t __len, int __flags); ^~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:94:12: error: storage class specified for parameter 'madvise' extern int madvise (void *__addr, size_t __len, int __advice) __THROW; ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:98:12: error: storage class specified for parameter 'posix_madvise' extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:103:12: error: storage class specified for parameter 'mlock' extern int mlock (const void *__addr, size_t __len) __THROW; ^~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:106:12: error: storage class specified for parameter 'munlock' extern int munlock (const void *__addr, size_t __len) __THROW; ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:111:12: error: storage class specified for parameter 'mlockall' extern int mlockall (int __flags) __THROW; ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:115:12: error: storage class specified for parameter 'munlockall' extern int munlockall (void) __THROW; ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:123:12: error: storage class specified for parameter 'mincore' extern int mincore (void *__start, size_t __len, unsigned char *__vec) ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:144:12: error: storage class specified for parameter 'shm_open' extern int shm_open (const char *__name, int __oflag, mode_t __mode); ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:147:12: error: storage class specified for parameter 'shm_unlink' extern int shm_unlink (const char *__name); ^~~~~~~~~~ In file included from /usr/include/getopt.h:36, from util/include/stir_shaken_tool.h:4, from util/src/stir_shaken_tool.c:1: /usr/include/x86_64-linux-gnu/bits/getopt_ext.h:66:12: error: storage class specified for parameter 'getopt_long' extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/getopt_ext.h:70:12: error: storage class specified for parameter 'getopt_long_only' extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, ^~~~~~~~~~~~~~~~ In file included from util/src/stir_shaken_tool.c:1: util/include/stir_shaken_tool.h:166:2: error: expected specifier-qualifier-list before 'stir_shaken_ca_t' stir_shaken_ca_t ca; ^~~~~~~~~~~~~~~~ util/include/stir_shaken_tool.h:174:3: error: storage class specified for parameter 'ca' } ca; ^~ util/include/stir_shaken_tool.h:177:2: error: expected specifier-qualifier-list before 'stir_shaken_pa_t' stir_shaken_pa_t pa; ^~~~~~~~~~~~~~~~ util/include/stir_shaken_tool.h:185:3: error: storage class specified for parameter 'pa' } pa; ^~ util/include/stir_shaken_tool.h:188:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ util/include/stir_shaken_tool.h:197:3: error: storage class specified for parameter 'sp' } sp; ^~ util/include/stir_shaken_tool.h:231:3: error: storage class specified for parameter 'options' } options; ^~~~~~~ util/src/stir_shaken_tool.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_tool.c:53:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_tool.c:58:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_tool.c:67:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ In file included from util/include/stir_shaken_tool.h:1, from util/src/stir_shaken_tool.c:1: include/stir_shaken.h:1134:22: error: old-style parameter declarations in prototyped function definition stir_shaken_status_t stir_shaken_load_x509_from_file_fullchain(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, const char *name) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_tool.c:406: error: expected '{' at end of input } make: *** [Makefile:1748: util/src/stirshaken-stir_shaken_tool.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from util/src/stir_shaken_ca.c:1: include/stir_shaken.h: In function 'stir_shaken_load_x509_from_file_fullchain': include/stir_shaken.h:1282:31: error: storage class specified for parameter 'stir_shaken_make_http_req' extern stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1284:29: error: storage class specified for parameter 'stir_shaken_make_http_req_mock' extern stir_shaken_status_t stir_shaken_make_http_req_mock(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1319:3: error: storage class specified for parameter 'stir_shaken_as_settings_t' } stir_shaken_as_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1324:2: error: expected specifier-qualifier-list before 'stir_shaken_as_settings_t' stir_shaken_as_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1325:3: error: storage class specified for parameter 'stir_shaken_as_t' } stir_shaken_as_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1327:1: error: expected declaration specifiers before 'stir_shaken_as_t' stir_shaken_as_t* stir_shaken_as_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1328:29: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' void stir_shaken_as_destroy(stir_shaken_as_t **as); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1329:88: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_private_key(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *private_key_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1330:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *cert_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1332:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_passport(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1334:76: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_sih(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1335:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_install_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *where); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1357:3: error: storage class specified for parameter 'stir_shaken_vs_settings_t' } stir_shaken_vs_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1362:2: error: expected specifier-qualifier-list before 'stir_shaken_vs_settings_t' stir_shaken_vs_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1363:3: error: storage class specified for parameter 'stir_shaken_vs_t' } stir_shaken_vs_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1365:1: error: expected declaration specifiers before 'stir_shaken_vs_t' stir_shaken_vs_t* stir_shaken_vs_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1366:29: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' void stir_shaken_vs_destroy(stir_shaken_vs_t **vs); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1367:83: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_ca_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *ca_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1368:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_crl_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *crl_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1369:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_callback(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, stir_shaken_callback_t callback); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1370:96: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_x509_cert_path_check(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, uint8_t x); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1371:91: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_connect_timeout(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, unsigned long timeout_s); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1372:87: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_to_jwt_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, jwt_t **jwt_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1373:80: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1374:75: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_sih_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *sih, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1377:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_authenticate(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1421:16: error: storage class specified for parameter 'stir_shaken_hash_entry_destructor' typedef void (*stir_shaken_hash_entry_destructor)(void*); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1426:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_destructor' stir_shaken_hash_entry_destructor dctor; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1428:3: error: storage class specified for parameter 'stir_shaken_hash_entry_t' } stir_shaken_hash_entry_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1431:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_find(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1432:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_create(size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1433:37: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_entry_destroy(stir_shaken_hash_entry_t *e, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1434:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_add(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1435:52: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_hash_entry_remove(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1436:38: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy_branch(stir_shaken_hash_entry_t *entry, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1437:31: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy(stir_shaken_hash_entry_t **hash, size_t hashsize, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1473:3: error: storage class specified for parameter 'stir_shaken_sp_t' } stir_shaken_sp_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1486:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1489:3: error: storage class specified for parameter 'stir_shaken_ca_session_t' } stir_shaken_ca_session_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1507:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* sessions[STI_CA_SESSIONS_MAX]; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1516:3: error: storage class specified for parameter 'stir_shaken_ca_t' } stir_shaken_ca_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1523:3: error: storage class specified for parameter 'stir_shaken_pa_t' } stir_shaken_pa_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1525:92: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_key_trusted(stir_shaken_context_t *ss, EVP_PKEY *pkey, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1526:103: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_cert_trusted(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1528:87: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted(stir_shaken_context_t *ss, X509 *x, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1529:105: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted_from_file(stir_shaken_context_t *ss, char *file_name, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1532:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1533:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1536:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1537:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1538:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1539:76: error: expected declaration specifiers or '...' before 'stir_shaken_pa_t' stir_shaken_status_t stir_shaken_run_pa_service(stir_shaken_context_t *ss, stir_shaken_pa_t *pa); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1541:29: error: expected declaration specifiers or '...' before 'stir_shaken_sp_t' void stir_shaken_sp_destroy(stir_shaken_sp_t *sp); ^~~~~~~~~~~~~~~~ In file included from util/include/mongoose.h:396, from util/src/stir_shaken_ca.c:2: /usr/include/dirent.h:127:28: error: storage class specified for parameter 'DIR' typedef struct __dirstream DIR; ^~~ /usr/include/dirent.h:134:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token extern DIR *opendir (const char *__name) __nonnull ((1)); ^ /usr/include/dirent.h:141:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token extern DIR *fdopendir (int __fd); ^ /usr/include/dirent.h:149:22: error: expected declaration specifiers or '...' before 'DIR' extern int closedir (DIR *__dirp) __nonnull ((1)); ^~~ /usr/include/dirent.h:162:32: error: expected declaration specifiers or '...' before 'DIR' extern struct dirent *readdir (DIR *__dirp) __nonnull ((1)); ^~~ /usr/include/dirent.h:183:23: error: expected declaration specifiers or '...' before 'DIR' extern int readdir_r (DIR *__restrict __dirp, ^~~ /usr/include/dirent.h:209:24: error: expected declaration specifiers or '...' before 'DIR' extern void rewinddir (DIR *__dirp) __THROW __nonnull ((1)); ^~~ /usr/include/dirent.h:215:22: error: expected declaration specifiers or '...' before 'DIR' extern void seekdir (DIR *__dirp, long int __pos) __THROW __nonnull ((1)); ^~~ /usr/include/dirent.h:218:26: error: expected declaration specifiers or '...' before 'DIR' extern long int telldir (DIR *__dirp) __THROW __nonnull ((1)); ^~~ /usr/include/dirent.h:224:19: error: expected declaration specifiers or '...' before 'DIR' extern int dirfd (DIR *__dirp) __THROW __nonnull ((1)); ^~~ In file included from util/include/mongoose.h:396, from util/src/stir_shaken_ca.c:2: /usr/include/dirent.h:255:12: error: storage class specified for parameter 'scandir' extern int scandir (const char *__restrict __dir, ^~~~~~~ /usr/include/dirent.h:325:12: error: storage class specified for parameter 'alphasort' extern int alphasort (const struct dirent **__e1, ^~~~~~~~~ /usr/include/dirent.h:353:18: error: storage class specified for parameter 'getdirentries' extern __ssize_t getdirentries (int __fd, char *__restrict __buf, ^~~~~~~~~~~~~ In file included from util/src/stir_shaken_ca.c:2: util/include/mongoose.h:441:13: error: storage class specified for parameter 'sock_t' typedef int sock_t; ^~~~~~ util/include/mongoose.h:444:21: error: storage class specified for parameter 'cs_stat_t' typedef struct stat cs_stat_t; ^~~~~~~~~ util/include/mongoose.h:1866:3: error: storage class specified for parameter 'cs_md5_ctx' } cs_md5_ctx; ^~~~~~~~~~ util/include/mongoose.h:1868:18: error: expected declaration specifiers or '...' before 'cs_md5_ctx' void cs_md5_init(cs_md5_ctx *c); ^~~~~~~~~~ util/include/mongoose.h:1869:20: error: expected declaration specifiers or '...' before 'cs_md5_ctx' void cs_md5_update(cs_md5_ctx *c, const unsigned char *data, size_t len); ^~~~~~~~~~ util/include/mongoose.h:1870:38: error: expected declaration specifiers or '...' before 'cs_md5_ctx' void cs_md5_final(unsigned char *md, cs_md5_ctx *c); ^~~~~~~~~~ util/include/mongoose.h:1900:3: error: storage class specified for parameter 'cs_sha1_ctx' } cs_sha1_ctx; ^~~~~~~~~~~ util/include/mongoose.h:1902:19: error: expected declaration specifiers or '...' before 'cs_sha1_ctx' void cs_sha1_init(cs_sha1_ctx *); ^~~~~~~~~~~ util/include/mongoose.h:1903:21: error: expected declaration specifiers or '...' before 'cs_sha1_ctx' void cs_sha1_update(cs_sha1_ctx *, const unsigned char *data, uint32_t len); ^~~~~~~~~~~ util/include/mongoose.h:1904:46: error: expected declaration specifiers or '...' before 'cs_sha1_ctx' void cs_sha1_final(unsigned char digest[20], cs_sha1_ctx *); ^~~~~~~~~~~ In file included from util/src/stir_shaken_ca.c:2: util/include/mongoose.h:1958:1: warning: empty declaration struct mg_str { ^~~~~~ util/include/mongoose.h:2078:1: warning: empty declaration struct mbuf { ^~~~~~ util/include/mongoose.h:2161:16: error: storage class specified for parameter 'cs_base64_putc_t' typedef void (*cs_base64_putc_t)(char, void *); ^~~~~~~~~~~~~~~~ util/include/mongoose.h:2165:3: error: expected specifier-qualifier-list before 'cs_base64_putc_t' cs_base64_putc_t b64_putc; ^~~~~~~~~~~~~~~~ util/include/mongoose.h:2163:1: warning: empty declaration struct cs_base64_ctx { ^~~~~~ util/include/mongoose.h:2171:48: error: expected declaration specifiers or '...' before 'cs_base64_putc_t' void cs_base64_init(struct cs_base64_ctx *ctx, cs_base64_putc_t putc, ^~~~~~~~~~~~~~~~ util/include/mongoose.h:3335:1: warning: empty declaration struct mg_mgr; ^~~~~~ util/include/mongoose.h:3336:1: warning: empty declaration struct mg_connection; ^~~~~~ util/include/mongoose.h:3337:1: warning: empty declaration union socket_address; ^~~~~ util/include/mongoose.h:3339:1: warning: empty declaration struct mg_iface_vtable; ^~~~~~ util/include/mongoose.h:3341:1: warning: empty declaration struct mg_iface { ^~~~~~ util/include/mongoose.h:3378:46: error: expected declaration specifiers or '...' before 'sock_t' void (*sock_set)(struct mg_connection *nc, sock_t sock); ^~~~~~ util/include/mongoose.h:3347:1: warning: empty declaration struct mg_iface_vtable { ^~~~~~ util/include/mongoose.h:3385:38: error: storage class specified for parameter 'mg_ifaces' extern const struct mg_iface_vtable *mg_ifaces[]; ^~~~~~~~~ util/include/mongoose.h:3386:12: error: storage class specified for parameter 'mg_num_ifaces' extern int mg_num_ifaces; ^~~~~~~~~~~~~ util/include/mongoose.h:3453:1: warning: empty declaration struct mg_ssl_if_ctx; ^~~~~~ util/include/mongoose.h:3454:1: warning: empty declaration struct mg_connection; ^~~~~~ util/include/mongoose.h:3458:1: warning: empty declaration enum mg_ssl_if_result { ^~~~ util/include/mongoose.h:3465:1: warning: empty declaration struct mg_ssl_if_conn_params { ^~~~~~ util/include/mongoose.h:3531:1: warning: empty declaration union socket_address { ^~~~~ util/include/mongoose.h:3541:1: warning: empty declaration struct mg_connection; ^~~~~~ util/include/mongoose.h:3547:16: error: storage class specified for parameter 'mg_event_handler_t' typedef void (*mg_event_handler_t)(struct mg_connection *nc, int ev, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3568:3: error: expected specifier-qualifier-list before 'sock_t' sock_t ctl[2]; /* Socketpair for mg_broadcast() */ ^~~~~~ util/include/mongoose.h:3562:1: warning: empty declaration struct mg_mgr { ^~~~~~ util/include/mongoose.h:3585:3: error: expected specifier-qualifier-list before 'sock_t' sock_t sock; /* Socket to the remote peer */ ^~~~~~ util/include/mongoose.h:3580:1: warning: empty declaration struct mg_connection { ^~~~~~ util/include/mongoose.h:3671:1: warning: empty declaration struct mg_mgr_init_opts { ^~~~~~ util/include/mongoose.h:3717:39: error: expected declaration specifiers or '...' before 'mg_event_handler_t' void mg_broadcast(struct mg_mgr *mgr, mg_event_handler_t cb, void *data, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3742:1: warning: empty declaration struct mg_add_sock_opts { ^~~~~~ util/include/mongoose.h:3755:55: error: expected declaration specifiers or '...' before 'sock_t' struct mg_connection *mg_add_sock(struct mg_mgr *mgr, sock_t sock, ^~~~~~ util/include/mongoose.h:3756:41: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3765:59: error: expected declaration specifiers or '...' before 'sock_t' struct mg_connection *mg_add_sock_opt(struct mg_mgr *mgr, sock_t sock, ^~~~~~ util/include/mongoose.h:3766:45: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3776:1: warning: empty declaration struct mg_bind_opts { ^~~~~~ util/include/mongoose.h:3815:37: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3836:41: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3841:1: warning: empty declaration struct mg_connect_opts { ^~~~~~ util/include/mongoose.h:3901:40: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3953:44: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3987:1: error: expected declaration specifiers before '__attribute__' __attribute__((format(printf, 2, 3))) ^~~~~~~~~~~~~ util/include/mongoose.h:4006:19: error: expected declaration specifiers or '...' before 'sock_t' int mg_socketpair(sock_t[2], int sock_type); ^~~~~~ util/include/mongoose.h:4213:31: error: expected declaration specifiers or '...' before 'cs_stat_t' int mg_stat(const char *path, cs_stat_t *st); ^~~~~~~~~ util/include/mongoose.h:4259:1: warning: parameter names (without types) in function declaration void mg_set_close_on_exec(sock_t); ^~~~ util/include/mongoose.h:4282:21: error: expected declaration specifiers or '...' before 'sock_t' void mg_sock_to_str(sock_t sock, char *buf, size_t len, int flags); ^~~~~~ util/include/mongoose.h:4397:1: warning: empty declaration struct http_message { ^~~~~~ util/include/mongoose.h:4427:1: warning: empty declaration struct websocket_message { ^~~~~~ util/include/mongoose.h:4435:1: warning: empty declaration struct mg_http_multipart_part { ^~~~~~ util/include/mongoose.h:4452:1: warning: empty declaration struct mg_ssi_call_ctx { ^~~~~~ util/include/mongoose.h:4609:43: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t event_handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:4621:31: error: expected declaration specifiers or '...' before 'mg_event_handler_t' struct mg_mgr *mgr, MG_CB(mg_event_handler_t ev_handler, void *user_data), ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:4700:13: error: storage class specified for parameter 'mg_hash_md5_v' extern void mg_hash_md5_v(size_t num_msgs, const uint8_t *msgs[], ^~~~~~~~~~~~~ util/include/mongoose.h:4702:13: error: storage class specified for parameter 'mg_hash_sha1_v' extern void mg_hash_sha1_v(size_t num_msgs, const uint8_t *msgs[], ^~~~~~~~~~~~~~ util/include/mongoose.h:4884:1: warning: empty declaration struct mg_serve_http_opts { ^~~~~~ util/include/mongoose.h:5158:38: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:5161:1: warning: empty declaration struct mg_http_endpoint_opts { ^~~~~~ util/include/mongoose.h:5170:36: error: expected declaration specifiers or '...' before 'mg_event_handler_t' mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:5340:11: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t event_handler, void *user_data), const char *url, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:5351:31: error: expected declaration specifiers or '...' before 'mg_event_handler_t' struct mg_mgr *mgr, MG_CB(mg_event_handler_t ev_handler, void *user_data), ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:5378:1: warning: empty declaration struct mg_mqtt_message { ^~~~~~ util/include/mongoose.h:5400:1: warning: empty declaration struct mg_mqtt_topic_expression { ^~~~~~ util/include/mongoose.h:5405:1: warning: empty declaration struct mg_send_mqtt_handshake_opts { ^~~~~~ util/include/mongoose.h:5415:1: warning: empty declaration struct mg_mqtt_proto_data { ^~~~~~ util/include/mongoose.h:5703:1: warning: empty declaration enum mg_dns_resource_record_kind { ^~~~ util/include/mongoose.h:5710:1: warning: empty declaration struct mg_dns_resource_record { ^~~~~~ util/include/mongoose.h:5720:1: warning: empty declaration struct mg_dns_message { ^~~~~~ util/include/mongoose.h:5945:1: warning: empty declaration enum mg_resolve_err { ^~~~ util/include/mongoose.h:5952:16: error: storage class specified for parameter 'mg_resolve_callback_t' typedef void (*mg_resolve_callback_t)(struct mg_dns_message *dns_message, ^~~~~~~~~~~~~~~~~~~~~ util/include/mongoose.h:5956:1: warning: empty declaration struct mg_resolve_async_opts { ^~~~~~ util/include/mongoose.h:5967:22: error: expected declaration specifiers or '...' before 'mg_resolve_callback_t' mg_resolve_callback_t cb, void *data); ^~~~~~~~~~~~~~~~~~~~~ util/include/mongoose.h:5994:26: error: expected declaration specifiers or '...' before 'mg_resolve_callback_t' mg_resolve_callback_t cb, void *data, ^~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:7:1: error: parameter 'big_fat_lock' is initialized pthread_mutex_t big_fat_lock = PTHREAD_MUTEX_INITIALIZER; ^~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:9:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static stir_shaken_status_t ca_authority_over_a_number_check(char *sp, char *origin_identity) { ^ util/src/stir_shaken_ca.c:20:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca) ^~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:29:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:46:14: error: storage class specified for parameter 'handler_t' typedef void handler_t(struct mg_connection *nc, int event, void *hm, void *d); ^~~~~~~~~ util/src/stir_shaken_ca.c:50:2: error: expected specifier-qualifier-list before 'handler_t' handler_t *f; ^~~~~~~~~ util/src/stir_shaken_ca.c:52:3: error: storage class specified for parameter 'event_handler_t' } event_handler_t; ^~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:55:1: error: expected declaration specifiers before 'event_handler_t' event_handler_t event_handlers[HANDLERS_N]; ^~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:58:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:77:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token static event_handler_t* handler_registered(struct mg_str *uri) ^ util/src/stir_shaken_ca.c:103:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:120:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:139:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:145:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token static stir_shaken_ca_session_t* stir_shaken_ca_session_create(size_t sp_code, char *authz_challenge, void *csr_pem, uint8_t use_ssl) ^ util/src/stir_shaken_ca.c:163:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:200:41: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_expired(stir_shaken_ca_session_t *session) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:212:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:218:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:236:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:320:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl) ^~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:320:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:471:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:659:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:686:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:708:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:737:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:771:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert) ^~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:816:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:1166:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:1271:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:1367:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca) ^~~~~~~~~~~~~~~~ In file included from util/src/stir_shaken_ca.c:1: include/stir_shaken.h:1134:22: error: old-style parameter declarations in prototyped function definition stir_shaken_status_t stir_shaken_load_x509_from_file_fullchain(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, const char *name) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:1442: error: expected '{' at end of input } In file included from util/include/stir_shaken_tool.h:1, from util/src/stir_shaken_tool_command.c:1: include/stir_shaken.h: In function 'stir_shaken_load_x509_from_file_fullchain': include/stir_shaken.h:1282:31: error: storage class specified for parameter 'stir_shaken_make_http_req' extern stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1284:29: error: storage class specified for parameter 'stir_shaken_make_http_req_mock' extern stir_shaken_status_t stir_shaken_make_http_req_mock(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1319:3: error: storage class specified for parameter 'stir_shaken_as_settings_t' } stir_shaken_as_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1324:2: error: expected specifier-qualifier-list before 'stir_shaken_as_settings_t' stir_shaken_as_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1325:3: error: storage class specified for parameter 'stir_shaken_as_t' } stir_shaken_as_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1327:1: error: expected declaration specifiers before 'stir_shaken_as_t' stir_shaken_as_t* stir_shaken_as_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1328:29: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' void stir_shaken_as_destroy(stir_shaken_as_t **as); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1329:88: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_private_key(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *private_key_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1330:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *cert_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1332:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_passport(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1334:76: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_sih(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1335:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_install_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *where); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1357:3: error: storage class specified for parameter 'stir_shaken_vs_settings_t' } stir_shaken_vs_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1362:2: error: expected specifier-qualifier-list before 'stir_shaken_vs_settings_t' stir_shaken_vs_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1363:3: error: storage class specified for parameter 'stir_shaken_vs_t' } stir_shaken_vs_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1365:1: error: expected declaration specifiers before 'stir_shaken_vs_t' stir_shaken_vs_t* stir_shaken_vs_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1366:29: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' void stir_shaken_vs_destroy(stir_shaken_vs_t **vs); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1367:83: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_ca_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *ca_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1368:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_crl_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *crl_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1369:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_callback(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, stir_shaken_callback_t callback); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1370:96: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_x509_cert_path_check(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, uint8_t x); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1371:91: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_connect_timeout(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, unsigned long timeout_s); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1372:87: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_to_jwt_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, jwt_t **jwt_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1373:80: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1374:75: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_sih_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *sih, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1377:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_authenticate(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1421:16: error: storage class specified for parameter 'stir_shaken_hash_entry_destructor' typedef void (*stir_shaken_hash_entry_destructor)(void*); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1426:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_destructor' stir_shaken_hash_entry_destructor dctor; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1428:3: error: storage class specified for parameter 'stir_shaken_hash_entry_t' } stir_shaken_hash_entry_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1431:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_find(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1432:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_create(size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1433:37: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_entry_destroy(stir_shaken_hash_entry_t *e, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1434:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_add(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1435:52: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_hash_entry_remove(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1436:38: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy_branch(stir_shaken_hash_entry_t *entry, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1437:31: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy(stir_shaken_hash_entry_t **hash, size_t hashsize, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1473:3: error: storage class specified for parameter 'stir_shaken_sp_t' } stir_shaken_sp_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1486:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1489:3: error: storage class specified for parameter 'stir_shaken_ca_session_t' } stir_shaken_ca_session_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1507:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* sessions[STI_CA_SESSIONS_MAX]; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1516:3: error: storage class specified for parameter 'stir_shaken_ca_t' } stir_shaken_ca_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1523:3: error: storage class specified for parameter 'stir_shaken_pa_t' } stir_shaken_pa_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1525:92: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_key_trusted(stir_shaken_context_t *ss, EVP_PKEY *pkey, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1526:103: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_cert_trusted(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1528:87: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted(stir_shaken_context_t *ss, X509 *x, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1529:105: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted_from_file(stir_shaken_context_t *ss, char *file_name, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1532:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1533:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1536:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1537:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1538:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1539:76: error: expected declaration specifiers or '...' before 'stir_shaken_pa_t' stir_shaken_status_t stir_shaken_run_pa_service(stir_shaken_context_t *ss, stir_shaken_pa_t *pa); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1541:29: error: expected declaration specifiers or '...' before 'stir_shaken_sp_t' void stir_shaken_sp_destroy(stir_shaken_sp_t *sp); ^~~~~~~~~~~~~~~~ In file included from util/include/stir_shaken_tool.h:3, from util/src/stir_shaken_tool_command.c:1: /usr/include/x86_64-linux-gnu/sys/mman.h:57:14: error: storage class specified for parameter 'mmap' extern void *mmap (void *__addr, size_t __len, int __prot, ^~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:76:12: error: storage class specified for parameter 'munmap' extern int munmap (void *__addr, size_t __len) __THROW; ^~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:81:12: error: storage class specified for parameter 'mprotect' extern int mprotect (void *__addr, size_t __len, int __prot) __THROW; ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:89:12: error: storage class specified for parameter 'msync' extern int msync (void *__addr, size_t __len, int __flags); ^~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:94:12: error: storage class specified for parameter 'madvise' extern int madvise (void *__addr, size_t __len, int __advice) __THROW; ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:98:12: error: storage class specified for parameter 'posix_madvise' extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:103:12: error: storage class specified for parameter 'mlock' extern int mlock (const void *__addr, size_t __len) __THROW; ^~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:106:12: error: storage class specified for parameter 'munlock' extern int munlock (const void *__addr, size_t __len) __THROW; ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:111:12: error: storage class specified for parameter 'mlockall' extern int mlockall (int __flags) __THROW; ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:115:12: error: storage class specified for parameter 'munlockall' extern int munlockall (void) __THROW; ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:123:12: error: storage class specified for parameter 'mincore' extern int mincore (void *__start, size_t __len, unsigned char *__vec) ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:144:12: error: storage class specified for parameter 'shm_open' extern int shm_open (const char *__name, int __oflag, mode_t __mode); ^~~~~~~~ /usr/include/x86_64-linux-gnu/sys/mman.h:147:12: error: storage class specified for parameter 'shm_unlink' extern int shm_unlink (const char *__name); ^~~~~~~~~~ In file included from /usr/include/getopt.h:36, from util/include/stir_shaken_tool.h:4, from util/src/stir_shaken_tool_command.c:1: /usr/include/x86_64-linux-gnu/bits/getopt_ext.h:66:12: error: storage class specified for parameter 'getopt_long' extern int getopt_long (int ___argc, char *__getopt_argv_const *___argv, ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/getopt_ext.h:70:12: error: storage class specified for parameter 'getopt_long_only' extern int getopt_long_only (int ___argc, char *__getopt_argv_const *___argv, ^~~~~~~~~~~~~~~~ In file included from util/src/stir_shaken_tool_command.c:1: util/include/stir_shaken_tool.h:166:2: error: expected specifier-qualifier-list before 'stir_shaken_ca_t' stir_shaken_ca_t ca; ^~~~~~~~~~~~~~~~ util/include/stir_shaken_tool.h:174:3: error: storage class specified for parameter 'ca' } ca; ^~ util/include/stir_shaken_tool.h:177:2: error: expected specifier-qualifier-list before 'stir_shaken_pa_t' stir_shaken_pa_t pa; ^~~~~~~~~~~~~~~~ util/include/stir_shaken_tool.h:185:3: error: storage class specified for parameter 'pa' } pa; ^~ util/include/stir_shaken_tool.h:188:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ util/include/stir_shaken_tool.h:197:3: error: storage class specified for parameter 'sp' } sp; ^~ util/include/stir_shaken_tool.h:231:3: error: storage class specified for parameter 'options' } options; ^~~~~~~ util/src/stir_shaken_tool_command.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_tool_command.c:140:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_tool_command.c:399:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ In file included from util/include/stir_shaken_tool.h:1, from util/src/stir_shaken_tool_command.c:1: include/stir_shaken.h:1134:22: error: old-style parameter declarations in prototyped function definition stir_shaken_status_t stir_shaken_load_x509_from_file_fullchain(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, const char *name) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_tool_command.c:895: error: expected '{' at end of input } make: *** [Makefile:1384: util/src/stir_shaken_ca-stir_shaken_ca.o] Error 1 make: *** [Makefile:1734: util/src/stirshaken-stir_shaken_tool_command.o] Error 1 In file included from util/src/stir_shaken_ca.c:1: include/stir_shaken.h: In function 'stir_shaken_load_x509_from_file_fullchain': include/stir_shaken.h:1282:31: error: storage class specified for parameter 'stir_shaken_make_http_req' extern stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1284:29: error: storage class specified for parameter 'stir_shaken_make_http_req_mock' extern stir_shaken_status_t stir_shaken_make_http_req_mock(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1319:3: error: storage class specified for parameter 'stir_shaken_as_settings_t' } stir_shaken_as_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1324:2: error: expected specifier-qualifier-list before 'stir_shaken_as_settings_t' stir_shaken_as_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1325:3: error: storage class specified for parameter 'stir_shaken_as_t' } stir_shaken_as_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1327:1: error: expected declaration specifiers before 'stir_shaken_as_t' stir_shaken_as_t* stir_shaken_as_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1328:29: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' void stir_shaken_as_destroy(stir_shaken_as_t **as); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1329:88: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_private_key(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *private_key_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1330:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *cert_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1332:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_passport(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1334:76: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_sih(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1335:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_install_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *where); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1357:3: error: storage class specified for parameter 'stir_shaken_vs_settings_t' } stir_shaken_vs_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1362:2: error: expected specifier-qualifier-list before 'stir_shaken_vs_settings_t' stir_shaken_vs_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1363:3: error: storage class specified for parameter 'stir_shaken_vs_t' } stir_shaken_vs_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1365:1: error: expected declaration specifiers before 'stir_shaken_vs_t' stir_shaken_vs_t* stir_shaken_vs_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1366:29: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' void stir_shaken_vs_destroy(stir_shaken_vs_t **vs); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1367:83: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_ca_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *ca_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1368:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_crl_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *crl_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1369:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_callback(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, stir_shaken_callback_t callback); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1370:96: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_x509_cert_path_check(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, uint8_t x); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1371:91: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_connect_timeout(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, unsigned long timeout_s); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1372:87: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_to_jwt_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, jwt_t **jwt_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1373:80: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1374:75: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_sih_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *sih, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1377:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_authenticate(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1421:16: error: storage class specified for parameter 'stir_shaken_hash_entry_destructor' typedef void (*stir_shaken_hash_entry_destructor)(void*); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1426:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_destructor' stir_shaken_hash_entry_destructor dctor; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1428:3: error: storage class specified for parameter 'stir_shaken_hash_entry_t' } stir_shaken_hash_entry_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1431:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_find(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1432:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_create(size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1433:37: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_entry_destroy(stir_shaken_hash_entry_t *e, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1434:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_add(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1435:52: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_hash_entry_remove(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1436:38: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy_branch(stir_shaken_hash_entry_t *entry, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1437:31: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy(stir_shaken_hash_entry_t **hash, size_t hashsize, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1473:3: error: storage class specified for parameter 'stir_shaken_sp_t' } stir_shaken_sp_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1486:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1489:3: error: storage class specified for parameter 'stir_shaken_ca_session_t' } stir_shaken_ca_session_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1507:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* sessions[STI_CA_SESSIONS_MAX]; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1516:3: error: storage class specified for parameter 'stir_shaken_ca_t' } stir_shaken_ca_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1523:3: error: storage class specified for parameter 'stir_shaken_pa_t' } stir_shaken_pa_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1525:92: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_key_trusted(stir_shaken_context_t *ss, EVP_PKEY *pkey, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1526:103: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_cert_trusted(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1528:87: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted(stir_shaken_context_t *ss, X509 *x, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1529:105: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted_from_file(stir_shaken_context_t *ss, char *file_name, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1532:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1533:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1536:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1537:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1538:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1539:76: error: expected declaration specifiers or '...' before 'stir_shaken_pa_t' stir_shaken_status_t stir_shaken_run_pa_service(stir_shaken_context_t *ss, stir_shaken_pa_t *pa); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1541:29: error: expected declaration specifiers or '...' before 'stir_shaken_sp_t' void stir_shaken_sp_destroy(stir_shaken_sp_t *sp); ^~~~~~~~~~~~~~~~ In file included from util/include/mongoose.h:396, from util/src/stir_shaken_ca.c:2: /usr/include/dirent.h:127:28: error: storage class specified for parameter 'DIR' typedef struct __dirstream DIR; ^~~ /usr/include/dirent.h:134:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token extern DIR *opendir (const char *__name) __nonnull ((1)); ^ /usr/include/dirent.h:141:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token extern DIR *fdopendir (int __fd); ^ /usr/include/dirent.h:149:22: error: expected declaration specifiers or '...' before 'DIR' extern int closedir (DIR *__dirp) __nonnull ((1)); ^~~ /usr/include/dirent.h:162:32: error: expected declaration specifiers or '...' before 'DIR' extern struct dirent *readdir (DIR *__dirp) __nonnull ((1)); ^~~ /usr/include/dirent.h:183:23: error: expected declaration specifiers or '...' before 'DIR' extern int readdir_r (DIR *__restrict __dirp, ^~~ /usr/include/dirent.h:209:24: error: expected declaration specifiers or '...' before 'DIR' extern void rewinddir (DIR *__dirp) __THROW __nonnull ((1)); ^~~ /usr/include/dirent.h:215:22: error: expected declaration specifiers or '...' before 'DIR' extern void seekdir (DIR *__dirp, long int __pos) __THROW __nonnull ((1)); ^~~ /usr/include/dirent.h:218:26: error: expected declaration specifiers or '...' before 'DIR' extern long int telldir (DIR *__dirp) __THROW __nonnull ((1)); ^~~ /usr/include/dirent.h:224:19: error: expected declaration specifiers or '...' before 'DIR' extern int dirfd (DIR *__dirp) __THROW __nonnull ((1)); ^~~ In file included from util/include/mongoose.h:396, from util/src/stir_shaken_ca.c:2: /usr/include/dirent.h:255:12: error: storage class specified for parameter 'scandir' extern int scandir (const char *__restrict __dir, ^~~~~~~ /usr/include/dirent.h:325:12: error: storage class specified for parameter 'alphasort' extern int alphasort (const struct dirent **__e1, ^~~~~~~~~ /usr/include/dirent.h:353:18: error: storage class specified for parameter 'getdirentries' extern __ssize_t getdirentries (int __fd, char *__restrict __buf, ^~~~~~~~~~~~~ In file included from util/src/stir_shaken_ca.c:2: util/include/mongoose.h:441:13: error: storage class specified for parameter 'sock_t' typedef int sock_t; ^~~~~~ util/include/mongoose.h:444:21: error: storage class specified for parameter 'cs_stat_t' typedef struct stat cs_stat_t; ^~~~~~~~~ util/include/mongoose.h:1866:3: error: storage class specified for parameter 'cs_md5_ctx' } cs_md5_ctx; ^~~~~~~~~~ util/include/mongoose.h:1868:18: error: expected declaration specifiers or '...' before 'cs_md5_ctx' void cs_md5_init(cs_md5_ctx *c); ^~~~~~~~~~ util/include/mongoose.h:1869:20: error: expected declaration specifiers or '...' before 'cs_md5_ctx' void cs_md5_update(cs_md5_ctx *c, const unsigned char *data, size_t len); ^~~~~~~~~~ util/include/mongoose.h:1870:38: error: expected declaration specifiers or '...' before 'cs_md5_ctx' void cs_md5_final(unsigned char *md, cs_md5_ctx *c); ^~~~~~~~~~ util/include/mongoose.h:1900:3: error: storage class specified for parameter 'cs_sha1_ctx' } cs_sha1_ctx; ^~~~~~~~~~~ util/include/mongoose.h:1902:19: error: expected declaration specifiers or '...' before 'cs_sha1_ctx' void cs_sha1_init(cs_sha1_ctx *); ^~~~~~~~~~~ util/include/mongoose.h:1903:21: error: expected declaration specifiers or '...' before 'cs_sha1_ctx' void cs_sha1_update(cs_sha1_ctx *, const unsigned char *data, uint32_t len); ^~~~~~~~~~~ util/include/mongoose.h:1904:46: error: expected declaration specifiers or '...' before 'cs_sha1_ctx' void cs_sha1_final(unsigned char digest[20], cs_sha1_ctx *); ^~~~~~~~~~~ In file included from util/src/stir_shaken_ca.c:2: util/include/mongoose.h:1958:1: warning: empty declaration struct mg_str { ^~~~~~ util/include/mongoose.h:2078:1: warning: empty declaration struct mbuf { ^~~~~~ util/include/mongoose.h:2161:16: error: storage class specified for parameter 'cs_base64_putc_t' typedef void (*cs_base64_putc_t)(char, void *); ^~~~~~~~~~~~~~~~ util/include/mongoose.h:2165:3: error: expected specifier-qualifier-list before 'cs_base64_putc_t' cs_base64_putc_t b64_putc; ^~~~~~~~~~~~~~~~ util/include/mongoose.h:2163:1: warning: empty declaration struct cs_base64_ctx { ^~~~~~ util/include/mongoose.h:2171:48: error: expected declaration specifiers or '...' before 'cs_base64_putc_t' void cs_base64_init(struct cs_base64_ctx *ctx, cs_base64_putc_t putc, ^~~~~~~~~~~~~~~~ util/include/mongoose.h:3335:1: warning: empty declaration struct mg_mgr; ^~~~~~ util/include/mongoose.h:3336:1: warning: empty declaration struct mg_connection; ^~~~~~ util/include/mongoose.h:3337:1: warning: empty declaration union socket_address; ^~~~~ util/include/mongoose.h:3339:1: warning: empty declaration struct mg_iface_vtable; ^~~~~~ util/include/mongoose.h:3341:1: warning: empty declaration struct mg_iface { ^~~~~~ util/include/mongoose.h:3378:46: error: expected declaration specifiers or '...' before 'sock_t' void (*sock_set)(struct mg_connection *nc, sock_t sock); ^~~~~~ util/include/mongoose.h:3347:1: warning: empty declaration struct mg_iface_vtable { ^~~~~~ util/include/mongoose.h:3385:38: error: storage class specified for parameter 'mg_ifaces' extern const struct mg_iface_vtable *mg_ifaces[]; ^~~~~~~~~ util/include/mongoose.h:3386:12: error: storage class specified for parameter 'mg_num_ifaces' extern int mg_num_ifaces; ^~~~~~~~~~~~~ util/include/mongoose.h:3453:1: warning: empty declaration struct mg_ssl_if_ctx; ^~~~~~ util/include/mongoose.h:3454:1: warning: empty declaration struct mg_connection; ^~~~~~ util/include/mongoose.h:3458:1: warning: empty declaration enum mg_ssl_if_result { ^~~~ util/include/mongoose.h:3465:1: warning: empty declaration struct mg_ssl_if_conn_params { ^~~~~~ util/include/mongoose.h:3531:1: warning: empty declaration union socket_address { ^~~~~ util/include/mongoose.h:3541:1: warning: empty declaration struct mg_connection; ^~~~~~ util/include/mongoose.h:3547:16: error: storage class specified for parameter 'mg_event_handler_t' typedef void (*mg_event_handler_t)(struct mg_connection *nc, int ev, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3568:3: error: expected specifier-qualifier-list before 'sock_t' sock_t ctl[2]; /* Socketpair for mg_broadcast() */ ^~~~~~ util/include/mongoose.h:3562:1: warning: empty declaration struct mg_mgr { ^~~~~~ util/include/mongoose.h:3585:3: error: expected specifier-qualifier-list before 'sock_t' sock_t sock; /* Socket to the remote peer */ ^~~~~~ util/include/mongoose.h:3580:1: warning: empty declaration struct mg_connection { ^~~~~~ util/include/mongoose.h:3671:1: warning: empty declaration struct mg_mgr_init_opts { ^~~~~~ util/include/mongoose.h:3717:39: error: expected declaration specifiers or '...' before 'mg_event_handler_t' void mg_broadcast(struct mg_mgr *mgr, mg_event_handler_t cb, void *data, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3742:1: warning: empty declaration struct mg_add_sock_opts { ^~~~~~ util/include/mongoose.h:3755:55: error: expected declaration specifiers or '...' before 'sock_t' struct mg_connection *mg_add_sock(struct mg_mgr *mgr, sock_t sock, ^~~~~~ util/include/mongoose.h:3756:41: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3765:59: error: expected declaration specifiers or '...' before 'sock_t' struct mg_connection *mg_add_sock_opt(struct mg_mgr *mgr, sock_t sock, ^~~~~~ util/include/mongoose.h:3766:45: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3776:1: warning: empty declaration struct mg_bind_opts { ^~~~~~ util/include/mongoose.h:3815:37: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3836:41: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3841:1: warning: empty declaration struct mg_connect_opts { ^~~~~~ util/include/mongoose.h:3901:40: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3953:44: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:3987:1: error: expected declaration specifiers before '__attribute__' __attribute__((format(printf, 2, 3))) ^~~~~~~~~~~~~ util/include/mongoose.h:4006:19: error: expected declaration specifiers or '...' before 'sock_t' int mg_socketpair(sock_t[2], int sock_type); ^~~~~~ util/include/mongoose.h:4213:31: error: expected declaration specifiers or '...' before 'cs_stat_t' int mg_stat(const char *path, cs_stat_t *st); ^~~~~~~~~ util/include/mongoose.h:4259:1: warning: parameter names (without types) in function declaration void mg_set_close_on_exec(sock_t); ^~~~ util/include/mongoose.h:4282:21: error: expected declaration specifiers or '...' before 'sock_t' void mg_sock_to_str(sock_t sock, char *buf, size_t len, int flags); ^~~~~~ util/include/mongoose.h:4397:1: warning: empty declaration struct http_message { ^~~~~~ util/include/mongoose.h:4427:1: warning: empty declaration struct websocket_message { ^~~~~~ util/include/mongoose.h:4435:1: warning: empty declaration struct mg_http_multipart_part { ^~~~~~ util/include/mongoose.h:4452:1: warning: empty declaration struct mg_ssi_call_ctx { ^~~~~~ util/include/mongoose.h:4609:43: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t event_handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:4621:31: error: expected declaration specifiers or '...' before 'mg_event_handler_t' struct mg_mgr *mgr, MG_CB(mg_event_handler_t ev_handler, void *user_data), ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:4700:13: error: storage class specified for parameter 'mg_hash_md5_v' extern void mg_hash_md5_v(size_t num_msgs, const uint8_t *msgs[], ^~~~~~~~~~~~~ util/include/mongoose.h:4702:13: error: storage class specified for parameter 'mg_hash_sha1_v' extern void mg_hash_sha1_v(size_t num_msgs, const uint8_t *msgs[], ^~~~~~~~~~~~~~ util/include/mongoose.h:4884:1: warning: empty declaration struct mg_serve_http_opts { ^~~~~~ util/include/mongoose.h:5158:38: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:5161:1: warning: empty declaration struct mg_http_endpoint_opts { ^~~~~~ util/include/mongoose.h:5170:36: error: expected declaration specifiers or '...' before 'mg_event_handler_t' mg_event_handler_t handler, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:5340:11: error: expected declaration specifiers or '...' before 'mg_event_handler_t' MG_CB(mg_event_handler_t event_handler, void *user_data), const char *url, ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:5351:31: error: expected declaration specifiers or '...' before 'mg_event_handler_t' struct mg_mgr *mgr, MG_CB(mg_event_handler_t ev_handler, void *user_data), ^~~~~~~~~~~~~~~~~~ util/include/mongoose.h:3303:23: note: in definition of macro 'MG_CB' #define MG_CB(cb, ud) cb, ud ^~ util/include/mongoose.h:5378:1: warning: empty declaration struct mg_mqtt_message { ^~~~~~ util/include/mongoose.h:5400:1: warning: empty declaration struct mg_mqtt_topic_expression { ^~~~~~ util/include/mongoose.h:5405:1: warning: empty declaration struct mg_send_mqtt_handshake_opts { ^~~~~~ util/include/mongoose.h:5415:1: warning: empty declaration struct mg_mqtt_proto_data { ^~~~~~ util/include/mongoose.h:5703:1: warning: empty declaration enum mg_dns_resource_record_kind { ^~~~ util/include/mongoose.h:5710:1: warning: empty declaration struct mg_dns_resource_record { ^~~~~~ util/include/mongoose.h:5720:1: warning: empty declaration struct mg_dns_message { ^~~~~~ util/include/mongoose.h:5945:1: warning: empty declaration enum mg_resolve_err { ^~~~ util/include/mongoose.h:5952:16: error: storage class specified for parameter 'mg_resolve_callback_t' typedef void (*mg_resolve_callback_t)(struct mg_dns_message *dns_message, ^~~~~~~~~~~~~~~~~~~~~ util/include/mongoose.h:5956:1: warning: empty declaration struct mg_resolve_async_opts { ^~~~~~ util/include/mongoose.h:5967:22: error: expected declaration specifiers or '...' before 'mg_resolve_callback_t' mg_resolve_callback_t cb, void *data); ^~~~~~~~~~~~~~~~~~~~~ util/include/mongoose.h:5994:26: error: expected declaration specifiers or '...' before 'mg_resolve_callback_t' mg_resolve_callback_t cb, void *data, ^~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:7:1: error: parameter 'big_fat_lock' is initialized pthread_mutex_t big_fat_lock = PTHREAD_MUTEX_INITIALIZER; ^~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:9:95: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static stir_shaken_status_t ca_authority_over_a_number_check(char *sp, char *origin_identity) { ^ util/src/stir_shaken_ca.c:20:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca) ^~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:29:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:46:14: error: storage class specified for parameter 'handler_t' typedef void handler_t(struct mg_connection *nc, int event, void *hm, void *d); ^~~~~~~~~ util/src/stir_shaken_ca.c:50:2: error: expected specifier-qualifier-list before 'handler_t' handler_t *f; ^~~~~~~~~ util/src/stir_shaken_ca.c:52:3: error: storage class specified for parameter 'event_handler_t' } event_handler_t; ^~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:55:1: error: expected declaration specifiers before 'event_handler_t' event_handler_t event_handlers[HANDLERS_N]; ^~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:58:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:77:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token static event_handler_t* handler_registered(struct mg_str *uri) ^ util/src/stir_shaken_ca.c:103:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:120:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:139:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:145:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token static stir_shaken_ca_session_t* stir_shaken_ca_session_create(size_t sp_code, char *authz_challenge, void *csr_pem, uint8_t use_ssl) ^ util/src/stir_shaken_ca.c:163:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:200:41: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_expired(stir_shaken_ca_session_t *session) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:212:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:218:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:236:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:320:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl) ^~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:320:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:471:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:659:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:686:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session) ^~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:708:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:737:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:771:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert) ^~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:816:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:1166:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:1271:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ util/src/stir_shaken_ca.c:1367:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca) ^~~~~~~~~~~~~~~~ In file included from util/src/stir_shaken_ca.c:1: include/stir_shaken.h:1134:22: error: old-style parameter declarations in prototyped function definition stir_shaken_status_t stir_shaken_load_x509_from_file_fullchain(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, const char *name) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ util/src/stir_shaken_ca.c:1442: error: expected '{' at end of input } make: *** [Makefile:1762: util/src/stirshaken-stir_shaken_ca.o] Error 1 In file included from src/stir_shaken_service.c:1: include/stir_shaken.h: In function 'stir_shaken_load_x509_from_file_fullchain': include/stir_shaken.h:1282:31: error: storage class specified for parameter 'stir_shaken_make_http_req' extern stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1284:29: error: storage class specified for parameter 'stir_shaken_make_http_req_mock' extern stir_shaken_status_t stir_shaken_make_http_req_mock(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1319:3: error: storage class specified for parameter 'stir_shaken_as_settings_t' } stir_shaken_as_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1324:2: error: expected specifier-qualifier-list before 'stir_shaken_as_settings_t' stir_shaken_as_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1325:3: error: storage class specified for parameter 'stir_shaken_as_t' } stir_shaken_as_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1327:1: error: expected declaration specifiers before 'stir_shaken_as_t' stir_shaken_as_t* stir_shaken_as_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1328:29: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' void stir_shaken_as_destroy(stir_shaken_as_t **as); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1329:88: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_private_key(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *private_key_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1330:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *cert_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1332:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_passport(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1334:76: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_sih(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1335:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_install_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *where); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1357:3: error: storage class specified for parameter 'stir_shaken_vs_settings_t' } stir_shaken_vs_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1362:2: error: expected specifier-qualifier-list before 'stir_shaken_vs_settings_t' stir_shaken_vs_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1363:3: error: storage class specified for parameter 'stir_shaken_vs_t' } stir_shaken_vs_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1365:1: error: expected declaration specifiers before 'stir_shaken_vs_t' stir_shaken_vs_t* stir_shaken_vs_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1366:29: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' void stir_shaken_vs_destroy(stir_shaken_vs_t **vs); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1367:83: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_ca_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *ca_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1368:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_crl_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *crl_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1369:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_callback(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, stir_shaken_callback_t callback); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1370:96: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_x509_cert_path_check(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, uint8_t x); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1371:91: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_connect_timeout(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, unsigned long timeout_s); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1372:87: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_to_jwt_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, jwt_t **jwt_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1373:80: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1374:75: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_sih_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *sih, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1377:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_authenticate(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1421:16: error: storage class specified for parameter 'stir_shaken_hash_entry_destructor' typedef void (*stir_shaken_hash_entry_destructor)(void*); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1426:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_destructor' stir_shaken_hash_entry_destructor dctor; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1428:3: error: storage class specified for parameter 'stir_shaken_hash_entry_t' } stir_shaken_hash_entry_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1431:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_find(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1432:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_create(size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1433:37: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_entry_destroy(stir_shaken_hash_entry_t *e, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1434:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_add(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1435:52: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_hash_entry_remove(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1436:38: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy_branch(stir_shaken_hash_entry_t *entry, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1437:31: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy(stir_shaken_hash_entry_t **hash, size_t hashsize, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1473:3: error: storage class specified for parameter 'stir_shaken_sp_t' } stir_shaken_sp_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1486:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1489:3: error: storage class specified for parameter 'stir_shaken_ca_session_t' } stir_shaken_ca_session_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1507:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* sessions[STI_CA_SESSIONS_MAX]; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1516:3: error: storage class specified for parameter 'stir_shaken_ca_t' } stir_shaken_ca_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1523:3: error: storage class specified for parameter 'stir_shaken_pa_t' } stir_shaken_pa_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1525:92: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_key_trusted(stir_shaken_context_t *ss, EVP_PKEY *pkey, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1526:103: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_cert_trusted(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1528:87: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted(stir_shaken_context_t *ss, X509 *x, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1529:105: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted_from_file(stir_shaken_context_t *ss, char *file_name, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1532:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1533:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1536:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1537:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1538:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1539:76: error: expected declaration specifiers or '...' before 'stir_shaken_pa_t' stir_shaken_status_t stir_shaken_run_pa_service(stir_shaken_context_t *ss, stir_shaken_pa_t *pa); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1541:29: error: expected declaration specifiers or '...' before 'stir_shaken_sp_t' void stir_shaken_sp_destroy(stir_shaken_sp_t *sp); ^~~~~~~~~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/curl/curl.h:38, from src/stir_shaken_service.c:2: /usr/include/x86_64-linux-gnu/curl/system.h:436:38: error: storage class specified for parameter 'curl_socklen_t' typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t; ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/system.h:442:34: error: storage class specified for parameter 'curl_off_t' typedef CURL_TYPEOF_CURL_OFF_T curl_off_t; ^~~~~~~~~~ In file included from src/stir_shaken_service.c:2: /usr/include/x86_64-linux-gnu/curl/curl.h:102:14: error: storage class specified for parameter 'CURL' typedef void CURL; ^~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:103:14: error: storage class specified for parameter 'CURLSH' typedef void CURLSH; ^~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:130:13: error: storage class specified for parameter 'curl_socket_t' typedef int curl_socket_t; ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:151:3: error: storage class specified for parameter 'curl_sslbackend' } curl_sslbackend; ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:197:3: error: expected specifier-qualifier-list before 'curl_off_t' curl_off_t contentlen; /* alternative length of contents ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:204:15: error: storage class specified for parameter 'curl_progress_callback' typedef int (*curl_progress_callback)(void *clientp, ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:213:39: error: expected declaration specifiers or '...' before 'curl_off_t' curl_off_t dltotal, ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:214:39: error: expected declaration specifiers or '...' before 'curl_off_t' curl_off_t dlnow, ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:215:39: error: expected declaration specifiers or '...' before 'curl_off_t' curl_off_t ultotal, ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:216:39: error: expected declaration specifiers or '...' before 'curl_off_t' curl_off_t ulnow); ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:244:18: error: storage class specified for parameter 'curl_write_callback' typedef size_t (*curl_write_callback)(char *buffer, ^~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:250:15: error: storage class specified for parameter 'curl_resolver_start_callback' typedef int (*curl_resolver_start_callback)(void *resolver_state, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:265:3: error: storage class specified for parameter 'curlfiletype' } curlfiletype; ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:282:3: error: expected specifier-qualifier-list before 'curlfiletype' curlfiletype filetype; ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:315:16: error: storage class specified for parameter 'curl_chunk_bgn_callback' typedef long (*curl_chunk_bgn_callback)(const void *transfer_info, ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:329:16: error: storage class specified for parameter 'curl_chunk_end_callback' typedef long (*curl_chunk_end_callback)(void *ptr); ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:338:15: error: storage class specified for parameter 'curl_fnmatch_callback' typedef int (*curl_fnmatch_callback)(void *ptr, ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:348:35: error: expected declaration specifiers or '...' before 'curl_off_t' curl_off_t offset, ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:365:18: error: storage class specified for parameter 'curl_read_callback' typedef size_t (*curl_read_callback)(char *buffer, ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:370:15: error: storage class specified for parameter 'curl_trailer_callback' typedef int (*curl_trailer_callback)(struct curl_slist **list, ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:377:3: error: storage class specified for parameter 'curlsocktype' } curlsocktype; ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:387:38: error: expected declaration specifiers or '...' before 'curl_socket_t' curl_socket_t curlfd, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:388:38: error: expected declaration specifiers or '...' before 'curlsocktype' curlsocktype purpose); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:401:2: error: expected declaration specifiers or '...' before '*' token (*curl_opensocket_callback)(void *clientp, ^ /usr/include/x86_64-linux-gnu/curl/curl.h:406:45: error: expected declaration specifiers or '...' before 'curl_socket_t' (*curl_closesocket_callback)(void *clientp, curl_socket_t item); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:413:3: error: storage class specified for parameter 'curlioerr' } curlioerr; ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:419:3: error: storage class specified for parameter 'curliocmd' } curliocmd; ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:421:20: error: expected declaration specifiers or '...' before '*' token typedef curlioerr (*curl_ioctl_callback)(CURL *handle, ^ /usr/include/x86_64-linux-gnu/curl/curl.h:432:17: error: storage class specified for parameter 'curl_malloc_callback' typedef void *(*curl_malloc_callback)(size_t size); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:433:16: error: storage class specified for parameter 'curl_free_callback' typedef void (*curl_free_callback)(void *ptr); ^~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:434:17: error: storage class specified for parameter 'curl_realloc_callback' typedef void *(*curl_realloc_callback)(void *ptr, size_t size); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:435:17: error: storage class specified for parameter 'curl_strdup_callback' typedef char *(*curl_strdup_callback)(const char *str); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:436:17: error: storage class specified for parameter 'curl_calloc_callback' typedef void *(*curl_calloc_callback)(size_t nmemb, size_t size); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:451:3: error: storage class specified for parameter 'curl_infotype' } curl_infotype; ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:454:9: error: expected declaration specifiers or '...' before 'CURL' (CURL *handle, /* the handle/transfer this concerns */ ^~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:455:9: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype type, /* what kind of data */ ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:596:3: error: storage class specified for parameter 'CURLcode' } CURLcode; ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:675:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*curl_conv_callback)(char *buffer, size_t length); ^ /usr/include/x86_64-linux-gnu/curl/curl.h:677:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*curl_ssl_ctx_callback)(CURL *curl, /* easy handle */ ^ /usr/include/x86_64-linux-gnu/curl/curl.h:695:3: error: storage class specified for parameter 'curl_proxytype' } curl_proxytype; /* this enum was added in 7.10 */ ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:784:27: error: expected declaration specifiers or '...' before 'CURL' (*curl_sshkeycallback) (CURL *easy, /* easy handle */ ^~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:797:3: error: storage class specified for parameter 'curl_usessl' } curl_usessl; ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:840:3: error: storage class specified for parameter 'curl_ftpccc' } curl_ftpccc; ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:848:3: error: storage class specified for parameter 'curl_ftpauth' } curl_ftpauth; ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:859:3: error: storage class specified for parameter 'curl_ftpcreatedir' } curl_ftpcreatedir; ^~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:868:3: error: storage class specified for parameter 'curl_ftpmethod' } curl_ftpmethod; ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:1898:3: error: storage class specified for parameter 'CURLoption' } CURLoption; ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2041:3: error: storage class specified for parameter 'curl_TimeCond' } curl_TimeCond; ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2052:33: error: storage class specified for parameter 'curl_mime' typedef struct curl_mime_s curl_mime; /* Mime context. */ ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2053:33: error: storage class specified for parameter 'curl_mimepart' typedef struct curl_mimepart_s curl_mimepart; /* Mime part context. */ ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2063:13: error: expected declaration specifiers before 'curl_mime' CURL_EXTERN curl_mime *curl_mime_init(CURL *easy); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2072:33: error: expected declaration specifiers or '...' before 'curl_mime' CURL_EXTERN void curl_mime_free(curl_mime *mime); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2082:13: error: expected declaration specifiers before 'curl_mimepart' CURL_EXTERN curl_mimepart *curl_mime_addpart(curl_mime *mime); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2091:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_name(curl_mimepart *part, const char *name); ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2100:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_filename(curl_mimepart *part, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2110:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype); ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2119:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_encoder(curl_mimepart *part, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2129:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_data(curl_mimepart *part, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2139:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_filedata(curl_mimepart *part, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2149:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_data_cb(curl_mimepart *part, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2163:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_subparts(curl_mimepart *part, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2172:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_mime_headers(curl_mimepart *part, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2218:3: error: storage class specified for parameter 'CURLformoption' } CURLformoption; ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2224:3: error: expected specifier-qualifier-list before 'CURLformoption' CURLformoption option; ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2256:3: error: storage class specified for parameter 'CURLFORMcode' } CURLFORMcode; ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2267:13: error: expected declaration specifiers before 'CURLFORMcode' CURL_EXTERN CURLFORMcode curl_formadd(struct curl_httppost **httppost, ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2279:18: error: storage class specified for parameter 'curl_formget_callback' typedef size_t (*curl_formget_callback)(void *arg, const char *buf, ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2293:30: error: expected declaration specifiers or '...' before 'curl_formget_callback' curl_formget_callback append); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2331:36: error: expected declaration specifiers or '...' before 'CURL' CURL_EXTERN char *curl_easy_escape(CURL *handle, ^~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2351:38: error: expected declaration specifiers or '...' before 'CURL' CURL_EXTERN char *curl_easy_unescape(CURL *handle, ^~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2380:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_global_init(long flags); ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2395:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_global_init_mem(long flags, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2445:3: error: expected specifier-qualifier-list before 'curl_sslbackend' curl_sslbackend id; ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2447:3: error: storage class specified for parameter 'curl_ssl_backend' } curl_ssl_backend; ^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2454:3: error: storage class specified for parameter 'CURLsslset' } CURLsslset; ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2456:13: error: expected declaration specifiers before 'CURLsslset' CURL_EXTERN CURLsslset curl_global_sslset(curl_sslbackend id, const char *name, ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2503:3: error: expected specifier-qualifier-list before 'curl_sslbackend' curl_sslbackend backend; ^~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2588:3: error: storage class specified for parameter 'CURLINFO' } CURLINFO; ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2604:3: error: storage class specified for parameter 'curl_closepolicy' } curl_closepolicy; ^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2632:3: error: storage class specified for parameter 'curl_lock_data' } curl_lock_data; ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2640:3: error: storage class specified for parameter 'curl_lock_access' } curl_lock_access; ^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2642:36: error: expected declaration specifiers or '...' before 'CURL' typedef void (*curl_lock_function)(CURL *handle, ^~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2643:36: error: expected declaration specifiers or '...' before 'curl_lock_data' curl_lock_data data, ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2644:36: error: expected declaration specifiers or '...' before 'curl_lock_access' curl_lock_access locktype, ^~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2646:38: error: expected declaration specifiers or '...' before 'CURL' typedef void (*curl_unlock_function)(CURL *handle, ^~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2647:38: error: expected declaration specifiers or '...' before 'curl_lock_data' curl_lock_data data, ^~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2659:3: error: storage class specified for parameter 'CURLSHcode' } CURLSHcode; ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2670:3: error: storage class specified for parameter 'CURLSHoption' } CURLSHoption; ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2672:13: error: expected declaration specifiers before 'CURLSH' CURL_EXTERN CURLSH *curl_share_init(void); ^~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2673:13: error: expected declaration specifiers before 'CURLSHcode' CURL_EXTERN CURLSHcode curl_share_setopt(CURLSH *, CURLSHoption option, ...); ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2674:13: error: expected declaration specifiers before 'CURLSHcode' CURL_EXTERN CURLSHcode curl_share_cleanup(CURLSH *); ^~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2687:3: error: storage class specified for parameter 'CURLversion' } CURLversion; ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2697:3: error: expected specifier-qualifier-list before 'CURLversion' CURLversion age; /* age of the returned struct */ ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2728:3: error: storage class specified for parameter 'curl_version_info_data' } curl_version_info_data; ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2768:13: error: expected declaration specifiers before 'curl_version_info_data' CURL_EXTERN curl_version_info_data *curl_version_info(CURLversion); ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/curl.h:2801:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask); ^~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/curl/curl.h:2818, from src/stir_shaken_service.c:2: /usr/include/x86_64-linux-gnu/curl/easy.h:28:13: error: expected declaration specifiers before 'CURL' CURL_EXTERN CURL *curl_easy_init(void); ^~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:29:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...); ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:30:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_easy_perform(CURL *curl); ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:31:36: error: expected declaration specifiers or '...' before 'CURL' CURL_EXTERN void curl_easy_cleanup(CURL *curl); ^~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:46:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...); ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:61:13: error: expected declaration specifiers before 'CURL' CURL_EXTERN CURL *curl_easy_duphandle(CURL *curl); ^~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:74:34: error: expected declaration specifiers or '...' before 'CURL' CURL_EXTERN void curl_easy_reset(CURL *curl); ^~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:84:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:95:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer, ^~~~~~~~ /usr/include/x86_64-linux-gnu/curl/easy.h:106:13: error: expected declaration specifiers before 'CURLcode' CURL_EXTERN CURLcode curl_easy_upkeep(CURL *curl); ^~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/curl/curl.h:2819, from src/stir_shaken_service.c:2: /usr/include/x86_64-linux-gnu/curl/multi.h:58:14: error: storage class specified for parameter 'CURLM' typedef void CURLM; ^~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:76:3: error: storage class specified for parameter 'CURLMcode' } CURLMcode; ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:93:3: error: storage class specified for parameter 'CURLMSG' } CURLMSG; ^~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:96:3: error: expected specifier-qualifier-list before 'CURLMSG' CURLMSG msg; /* what this message means */ ^~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:103:24: error: storage class specified for parameter 'CURLMsg' typedef struct CURLMsg CURLMsg; ^~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:113:3: error: expected specifier-qualifier-list before 'curl_socket_t' curl_socket_t fd; ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:125:13: error: expected declaration specifiers before 'CURLM' CURL_EXTERN CURLM *curl_multi_init(void); ^~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:134:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_add_handle(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:144:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_remove_handle(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:156:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_fdset(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:170:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:192:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_perform(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:205:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle); ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:235:13: error: expected declaration specifiers before 'CURLMsg' CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle, ^~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:270:37: error: expected declaration specifiers or '...' before 'CURL' typedef int (*curl_socket_callback)(CURL *easy, /* easy handle */ ^~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:271:37: error: expected declaration specifiers or '...' before 'curl_socket_t' curl_socket_t s, /* socket */ ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:287:42: error: expected declaration specifiers or '...' before 'CURLM' typedef int (*curl_multi_timer_callback)(CURLM *multi, /* multi handle */ ^~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:292:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:295:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_socket_action(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:300:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_socket_all(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:319:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_timeout(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:386:3: error: storage class specified for parameter 'CURLMoption' } CURLMoption; ^~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:396:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_setopt(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:409:13: error: expected declaration specifiers before 'CURLMcode' CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:431:35: error: expected declaration specifiers or '...' before 'CURL' typedef int (*curl_push_callback)(CURL *parent, ^~~~ /usr/include/x86_64-linux-gnu/curl/multi.h:432:35: error: expected declaration specifiers or '...' before 'CURL' CURL *easy, ^~~~ In file included from /usr/include/x86_64-linux-gnu/curl/curl.h:2820, from src/stir_shaken_service.c:2: /usr/include/x86_64-linux-gnu/curl/urlapi.h:51:3: error: storage class specified for parameter 'CURLUcode' } CURLUcode; ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/urlapi.h:64:3: error: storage class specified for parameter 'CURLUPart' } CURLUPart; ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/urlapi.h:80:25: error: storage class specified for parameter 'CURLU' typedef struct Curl_URL CURLU; ^~~~~ /usr/include/x86_64-linux-gnu/curl/urlapi.h:86:13: error: expected declaration specifiers before 'CURLU' CURL_EXTERN CURLU *curl_url(void); ^~~~~ /usr/include/x86_64-linux-gnu/curl/urlapi.h:93:35: error: expected declaration specifiers or '...' before 'CURLU' CURL_EXTERN void curl_url_cleanup(CURLU *handle); ^~~~~ /usr/include/x86_64-linux-gnu/curl/urlapi.h:99:13: error: expected declaration specifiers before 'CURLU' CURL_EXTERN CURLU *curl_url_dup(CURLU *in); ^~~~~ /usr/include/x86_64-linux-gnu/curl/urlapi.h:106:13: error: expected declaration specifiers before 'CURLUcode' CURL_EXTERN CURLUcode curl_url_get(CURLU *handle, CURLUPart what, ^~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/urlapi.h:114:13: error: expected declaration specifiers before 'CURLUcode' CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what, ^~~~~~~~~ In file included from /usr/include/x86_64-linux-gnu/curl/curl.h:2826, from src/stir_shaken_service.c:2: /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:166:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_long, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:168:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_curl_off_t, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:170:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_string, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:174:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_write_callback, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:176:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_resolver_start_callback, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:180:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_read_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:182:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_ioctl_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:184:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_sockopt_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:186:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_opensocket_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:190:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_progress_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:192:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_debug_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:194:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_ssl_ctx_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:196:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_conv_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:198:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_seek_cb, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:200:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_cb_data, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:203:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_error_buffer, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:206:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_FILE, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:208:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_postfields, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:210:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_curl_httpost, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:213:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_curl_mimepost, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:216:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_curl_slist, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:218:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_setopt_err_CURLSH, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:221:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_string, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:223:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_long, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:225:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_double, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:227:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_curl_slist, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:229:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_curl_tlssesssioninfo, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:232:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_curl_certinfo, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:235:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_curl_socket, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:237:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token _CURL_WARNING(_curl_easy_getinfo_err_curl_off_t, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:534:18: error: storage class specified for parameter '_curl_read_callback1' typedef size_t (*_curl_read_callback1)(char *, size_t, size_t, void *); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:535:18: error: storage class specified for parameter '_curl_read_callback2' typedef size_t (*_curl_read_callback2)(char *, size_t, size_t, const void *); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:536:18: error: storage class specified for parameter '_curl_read_callback3' typedef size_t (*_curl_read_callback3)(char *, size_t, size_t, FILE *); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:537:18: error: storage class specified for parameter '_curl_read_callback4' typedef size_t (*_curl_read_callback4)(void *, size_t, size_t, void *); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:538:18: error: storage class specified for parameter '_curl_read_callback5' typedef size_t (*_curl_read_callback5)(void *, size_t, size_t, const void *); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:539:18: error: storage class specified for parameter '_curl_read_callback6' typedef size_t (*_curl_read_callback6)(void *, size_t, size_t, FILE *); ^~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:552:18: error: storage class specified for parameter '_curl_write_callback1' typedef size_t (*_curl_write_callback1)(const char *, size_t, size_t, void *); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:553:18: error: storage class specified for parameter '_curl_write_callback2' typedef size_t (*_curl_write_callback2)(const char *, size_t, size_t, ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:555:18: error: storage class specified for parameter '_curl_write_callback3' typedef size_t (*_curl_write_callback3)(const char *, size_t, size_t, FILE *); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:556:18: error: storage class specified for parameter '_curl_write_callback4' typedef size_t (*_curl_write_callback4)(const void *, size_t, size_t, void *); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:557:18: error: storage class specified for parameter '_curl_write_callback5' typedef size_t (*_curl_write_callback5)(const void *, size_t, size_t, ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:559:18: error: storage class specified for parameter '_curl_write_callback6' typedef size_t (*_curl_write_callback6)(const void *, size_t, size_t, FILE *); ^~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:569:20: error: expected declaration specifiers or '...' before '*' token typedef curlioerr (*_curl_ioctl_callback1)(CURL *, int, void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:570:20: error: expected declaration specifiers or '...' before '*' token typedef curlioerr (*_curl_ioctl_callback2)(CURL *, int, const void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:571:20: error: expected declaration specifiers or '...' before '*' token typedef curlioerr (*_curl_ioctl_callback3)(CURL *, curliocmd, void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:572:20: error: expected declaration specifiers or '...' before '*' token typedef curlioerr (*_curl_ioctl_callback4)(CURL *, curliocmd, const void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:580:48: error: expected declaration specifiers or '...' before 'curl_socket_t' typedef int (*_curl_sockopt_callback1)(void *, curl_socket_t, curlsocktype); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:580:63: error: expected declaration specifiers or '...' before 'curlsocktype' typedef int (*_curl_sockopt_callback1)(void *, curl_socket_t, curlsocktype); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:581:54: error: expected declaration specifiers or '...' before 'curl_socket_t' typedef int (*_curl_sockopt_callback2)(const void *, curl_socket_t, ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:582:39: error: expected declaration specifiers or '...' before 'curlsocktype' curlsocktype); ^~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:593:24: error: expected declaration specifiers or '...' before '*' token typedef curl_socket_t (*_curl_opensocket_callback1) ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:595:24: error: expected declaration specifiers or '...' before '*' token typedef curl_socket_t (*_curl_opensocket_callback2) ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:597:24: error: expected declaration specifiers or '...' before '*' token typedef curl_socket_t (*_curl_opensocket_callback3) ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:599:24: error: expected declaration specifiers or '...' before '*' token typedef curl_socket_t (*_curl_opensocket_callback4) ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:608:15: error: storage class specified for parameter '_curl_progress_callback1' typedef int (*_curl_progress_callback1)(void *, ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:610:15: error: storage class specified for parameter '_curl_progress_callback2' typedef int (*_curl_progress_callback2)(const void *, ^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:625:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback1) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:626:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, char *, size_t, void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:627:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback2) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:628:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, char *, size_t, const void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:629:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback3) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:630:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, const char *, size_t, void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:631:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback4) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:632:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, const char *, size_t, const void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:633:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback5) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:634:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, unsigned char *, size_t, void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:635:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback6) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:636:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, unsigned char *, size_t, const void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:637:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback7) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:638:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, const unsigned char *, size_t, void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:639:39: error: expected declaration specifiers or '...' before 'CURL' typedef int (*_curl_debug_callback8) (CURL *, ^~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:640:5: error: expected declaration specifiers or '...' before 'curl_infotype' curl_infotype, const unsigned char *, size_t, const void *); ^~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:655:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback1)(CURL *, void *, void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:656:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback2)(CURL *, void *, const void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:657:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback3)(CURL *, const void *, void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:658:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback4)(CURL *, const void *, ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:664:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback5)(CURL *, SSL_CTX, void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:665:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback6)(CURL *, SSL_CTX, const void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:666:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback7)(CURL *, const SSL_CTX, void *); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:667:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_ssl_ctx_callback8)(CURL *, const SSL_CTX, ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:684:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_conv_callback1)(char *, size_t length); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:685:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_conv_callback2)(const char *, size_t length); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:686:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_conv_callback3)(void *, size_t length); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:687:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_conv_callback4)(const void *, size_t length); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:695:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_seek_callback1)(void *, curl_off_t, int); ^ /usr/include/x86_64-linux-gnu/curl/typecheck-gcc.h:696:19: error: expected declaration specifiers or '...' before '*' token typedef CURLcode (*_curl_seek_callback2)(const void *, curl_off_t, int); ^ src/stir_shaken_service.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:35:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:55:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:137:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:318:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:354:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:384:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:417:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:473:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:490:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:521:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:547:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:559:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:613:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:639:1: error: expected declaration specifiers before 'stir_shaken_as_t' stir_shaken_as_t* stir_shaken_as_create(struct stir_shaken_context_s *ss) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:650:29: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' void stir_shaken_as_destroy(stir_shaken_as_t **as) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:659:88: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_private_key(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *private_key_name) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:687:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *cert_name) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:718:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:748:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_passport(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:758:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken_service.c:790:76: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_sih(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:799:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_install_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *where) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:809:1: error: expected declaration specifiers before 'stir_shaken_vs_t' stir_shaken_vs_t* stir_shaken_vs_create(struct stir_shaken_context_s *ss) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:827:29: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' void stir_shaken_vs_destroy(stir_shaken_vs_t **vs) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:835:83: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_ca_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *ca_dir) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:852:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_crl_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *crl_dir) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:869:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_callback(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, stir_shaken_callback_t callback) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:881:96: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_x509_cert_path_check(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, uint8_t x) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:893:91: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_connect_timeout(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, unsigned long timeout_s) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:905:87: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_to_jwt_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, jwt_t **jwt_out) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:922:80: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out) ^~~~~~~~~~~~~~~~ src/stir_shaken_service.c:939:75: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_sih_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *sih, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out) ^~~~~~~~~~~~~~~~ In file included from src/stir_shaken_service.c:1: include/stir_shaken.h:1134:22: error: old-style parameter declarations in prototyped function definition stir_shaken_status_t stir_shaken_load_x509_from_file_fullchain(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, const char *name) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken_service.c:954: error: expected '{' at end of input } src/stir_shaken_service.c:954:1: error: control reaches end of non-void function [-Werror=return-type] } ^ src/stir_shaken_service.c: At top level: cc1: error: unrecognized command line option '-Wno-gnu-zero-variadic-macro-arguments' [-Werror] cc1: all warnings being treated as errors make: *** [Makefile:1334: src/stir_shaken_service.lo] Error 1 In file included from src/stir_shaken.c:1: include/stir_shaken.h: In function 'stir_shaken_load_x509_from_file_fullchain': include/stir_shaken.h:1282:31: error: storage class specified for parameter 'stir_shaken_make_http_req' extern stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1284:29: error: storage class specified for parameter 'stir_shaken_make_http_req_mock' extern stir_shaken_status_t stir_shaken_make_http_req_mock(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1319:3: error: storage class specified for parameter 'stir_shaken_as_settings_t' } stir_shaken_as_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1324:2: error: expected specifier-qualifier-list before 'stir_shaken_as_settings_t' stir_shaken_as_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1325:3: error: storage class specified for parameter 'stir_shaken_as_t' } stir_shaken_as_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1327:1: error: expected declaration specifiers before 'stir_shaken_as_t' stir_shaken_as_t* stir_shaken_as_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1328:29: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' void stir_shaken_as_destroy(stir_shaken_as_t **as); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1329:88: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_private_key(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *private_key_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1330:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_load_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *cert_name); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1332:81: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_passport(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1334:76: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' char* stir_shaken_as_authenticate_to_sih(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1335:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_install_cert(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, const char *where); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1357:3: error: storage class specified for parameter 'stir_shaken_vs_settings_t' } stir_shaken_vs_settings_t; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1362:2: error: expected specifier-qualifier-list before 'stir_shaken_vs_settings_t' stir_shaken_vs_settings_t settings; ^~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1363:3: error: storage class specified for parameter 'stir_shaken_vs_t' } stir_shaken_vs_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1365:1: error: expected declaration specifiers before 'stir_shaken_vs_t' stir_shaken_vs_t* stir_shaken_vs_create(struct stir_shaken_context_s *ss); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1366:29: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' void stir_shaken_vs_destroy(stir_shaken_vs_t **vs); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1367:83: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_ca_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *ca_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1368:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_load_crl_dir(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, const char *crl_dir); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1369:84: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_callback(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, stir_shaken_callback_t callback); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1370:96: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_x509_cert_path_check(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, uint8_t x); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1371:91: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_set_connect_timeout(struct stir_shaken_context_s *ss, stir_shaken_vs_t *vs, unsigned long timeout_s); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1372:87: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_to_jwt_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, jwt_t **jwt_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1373:80: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_passport_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *token, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1374:75: error: expected declaration specifiers or '...' before 'stir_shaken_vs_t' stir_shaken_status_t stir_shaken_vs_sih_verify(stir_shaken_context_t *ss, stir_shaken_vs_t *vs, const char *sih, stir_shaken_cert_t **cert_out, stir_shaken_passport_t **passport_out); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1377:84: error: expected declaration specifiers or '...' before 'stir_shaken_as_t' stir_shaken_status_t stir_shaken_as_authenticate(struct stir_shaken_context_s *ss, stir_shaken_as_t *as, stir_shaken_passport_params_t *params); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1421:16: error: storage class specified for parameter 'stir_shaken_hash_entry_destructor' typedef void (*stir_shaken_hash_entry_destructor)(void*); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1426:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_destructor' stir_shaken_hash_entry_destructor dctor; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1428:3: error: storage class specified for parameter 'stir_shaken_hash_entry_t' } stir_shaken_hash_entry_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1431:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_find(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1432:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_create(size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1433:37: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_entry_destroy(stir_shaken_hash_entry_t *e, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1434:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_add(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1435:52: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_hash_entry_remove(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1436:38: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy_branch(stir_shaken_hash_entry_t *entry, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1437:31: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy(stir_shaken_hash_entry_t **hash, size_t hashsize, int hash_copy_type); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1473:3: error: storage class specified for parameter 'stir_shaken_sp_t' } stir_shaken_sp_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1486:2: error: expected specifier-qualifier-list before 'stir_shaken_sp_t' stir_shaken_sp_t sp; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1489:3: error: storage class specified for parameter 'stir_shaken_ca_session_t' } stir_shaken_ca_session_t; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1507:2: error: expected specifier-qualifier-list before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* sessions[STI_CA_SESSIONS_MAX]; ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1516:3: error: storage class specified for parameter 'stir_shaken_ca_t' } stir_shaken_ca_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1523:3: error: storage class specified for parameter 'stir_shaken_pa_t' } stir_shaken_pa_t; ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1525:92: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_key_trusted(stir_shaken_context_t *ss, EVP_PKEY *pkey, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1526:103: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_cert_trusted(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1528:87: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted(stir_shaken_context_t *ss, X509 *x, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1529:105: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted_from_file(stir_shaken_context_t *ss, char *file_name, stir_shaken_hash_entry_t **trusted_pa_keys, size_t hashsize); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:80: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1531:153: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_sp_cert_req_reply_challenge(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, char *msg, char *authz_challenge, char *authz_url, stir_shaken_ca_session_t **session_out, uint8_t use_ssl); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1532:133: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_create_session_challenge_details(stir_shaken_context_t *ss, char *status, const char *spc, char *authz_url, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1533:136: error: expected declaration specifiers or '...' before 'stir_shaken_ca_session_t' stir_shaken_status_t ca_session_prepare_polling(stir_shaken_context_t *ss, const char *msg, char *spc, char *expires, char *validated, stir_shaken_ca_session_t *session); ^~~~~~~~~~~~~~~~~~~~~~~~ include/stir_shaken.h:1536:67: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t ca_verify_pa_cert(stir_shaken_context_t *ss, stir_shaken_ca_t *ca, stir_shaken_cert_t *cert); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1537:29: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' void stir_shaken_ca_destroy(stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1538:76: error: expected declaration specifiers or '...' before 'stir_shaken_ca_t' stir_shaken_status_t stir_shaken_run_ca_service(stir_shaken_context_t *ss, stir_shaken_ca_t *ca); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1539:76: error: expected declaration specifiers or '...' before 'stir_shaken_pa_t' stir_shaken_status_t stir_shaken_run_pa_service(stir_shaken_context_t *ss, stir_shaken_pa_t *pa); ^~~~~~~~~~~~~~~~ include/stir_shaken.h:1541:29: error: expected declaration specifiers or '...' before 'stir_shaken_sp_t' void stir_shaken_sp_destroy(stir_shaken_sp_t *sp); ^~~~~~~~~~~~~~~~ src/stir_shaken.c:5:1: error: parameter 'stir_shaken_make_http_req' is initialized stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req) = stir_shaken_make_http_req_real; ^~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:5:24: error: redefinition of parameter 'stir_shaken_make_http_req' stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req) = stir_shaken_make_http_req_real; ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/stir_shaken.c:1: include/stir_shaken.h:1282:31: note: previous definition of 'stir_shaken_make_http_req' was here extern stir_shaken_status_t (*stir_shaken_make_http_req)(stir_shaken_context_t *ss, stir_shaken_http_req_t *http_req); ^~~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:46:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:68:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:89:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:94:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:99:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:120:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:131:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:140:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:199:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:210:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:219:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:246:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:272:19: error: storage class specified for parameter 'stir_shaken_b64_table' static const char stir_shaken_b64_table[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; ^~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:272:1: error: parameter 'stir_shaken_b64_table' is initialized static const char stir_shaken_b64_table[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; ^~~~~~ src/stir_shaken.c:276:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:315:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:355:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:379:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:416:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:431:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:438:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:445:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:454:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:464:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:470:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:476:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:486:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:497:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:506:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:513:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:521:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:526:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_find(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:544:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_create(size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:569:37: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_entry_destroy(stir_shaken_hash_entry_t *e, int hash_copy_type) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:585:1: error: expected declaration specifiers before 'stir_shaken_hash_entry_t' stir_shaken_hash_entry_t* stir_shaken_hash_entry_add(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, void *data, int datalen, stir_shaken_hash_entry_destructor dctor, int hash_copy_type) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:617:52: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_hash_entry_remove(stir_shaken_hash_entry_t **hash, size_t hashsize, size_t key, int hash_copy_type) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:644:38: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy_branch(stir_shaken_hash_entry_t *entry, int hash_copy_type) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:659:31: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' void stir_shaken_hash_destroy(stir_shaken_hash_entry_t **hash, size_t hashsize, int hash_copy_type) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:676:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:690:92: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_key_trusted(stir_shaken_context_t *ss, EVP_PKEY *pkey, stir_shaken_hash_entry_t **trusted_keys, size_t hashsize) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:733:103: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_is_cert_trusted(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, stir_shaken_hash_entry_t **trusted_keys, size_t hashsize) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:768:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:774:87: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted(stir_shaken_context_t *ss, X509 *x, stir_shaken_hash_entry_t **trusted_keys, size_t hashsize) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:817:105: error: expected declaration specifiers or '...' before 'stir_shaken_hash_entry_t' stir_shaken_status_t stir_shaken_add_cert_trusted_from_file(stir_shaken_context_t *ss, char *file_name, stir_shaken_hash_entry_t **trusted_keys, size_t hashsize) ^~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:840:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:857:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ src/stir_shaken.c:863:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ In file included from src/stir_shaken.c:1: include/stir_shaken.h:1134:22: error: old-style parameter declarations in prototyped function definition stir_shaken_status_t stir_shaken_load_x509_from_file_fullchain(stir_shaken_context_t *ss, stir_shaken_cert_t *cert, const char *name) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/stir_shaken.c:868: error: expected '{' at end of input } src/stir_shaken.c:868:1: error: control reaches end of non-void function [-Werror=return-type] } ^ src/stir_shaken.c: At top level: cc1: error: unrecognized command line option '-Wno-gnu-zero-variadic-macro-arguments' [-Werror] cc1: all warnings being treated as errors make: *** [Makefile:1334: src/stir_shaken.lo] Error 1 scan-build: Removing directory '/drone/src/scan-build/2022-11-30-090716-2545-1' because it contains no reports. scan-build: No bugs found.