2026-05-27 17:44 ftp://ftp.de.debian.org/debian/pool/main/liba/libapache2-mod-authn-yubikey/libapache2-mod-authn-yubikey_1.0.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=libcurl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j8 platform: Linux-6.17.0-29-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 6e46c6b (2026-05-27 18:39:55 +0200) count: 27 26 elapsed-time: 0.0 0.1 head-timing-info: old-timing-info: head results: authn_yubikey/libykclient.c:218:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURLOPT_URL [valueFlowBailoutIncompleteVar] authn_yubikey/libykclient.c:214:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] authn_yubikey/libykclient.c:179:22: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'curl_callback' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] authn_yubikey/libykclient.c:223:58: note: You might need to cast the function pointer here authn_yubikey/libykclient.c:179:22: note: Parameter 'ptr' can be declared as pointer to const authn_yubikey/mod_authn_yubikey.c:124:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APLOG_DEBUG [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:133:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APLOG_DEBUG [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:143:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APLOG_DEBUG [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:176:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APLOG_DEBUG [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:193:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APLOG_DEBUG [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:207:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_STRING_LEN [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:328:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APLOG_DEBUG [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:370:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTH_DENIED [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:494:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_STRING_LEN [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:595:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OK [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:607:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AUTHN_PROVIDER_GROUP [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:671:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] authn_yubikey/mod_authn_yubikey.c:160:11: style: Variable 'dbToken' can be declared as pointer to const [constVariablePointer] authn_yubikey/mod_authn_yubikey.c:209:11: style: Variable 'file_password' can be declared as pointer to const [constVariablePointer] authn_yubikey/mod_authn_yubikey.c:496:11: style: Variable 'file_password' can be declared as pointer to const [constVariablePointer] authn_yubikey/mod_authn_yubikey.c:497:11: style: Variable 'yubiKeyId' can be declared as pointer to const [constVariablePointer] authn_yubikey/mod_authn_yubikey.c:498:11: style: Variable 'realName' can be declared as pointer to const [constVariablePointer] authn_yubikey/mod_authn_yubikey.c:499:17: style: Variable 'dbFormFile' can be declared as pointer to const [constVariablePointer] authn_yubikey/mod_authn_yubikey.c:209:11: style: Variable 'file_password' is assigned a value that is never used. [unreadVariable] authn_yubikey/mod_authn_yubikey.c:218:9: style: Variable 'tokenHasPassword' is assigned a value that is never used. [unreadVariable] authn_yubikey/mod_authn_yubikey.c:496:11: style: Variable 'file_password' is assigned a value that is never used. [unreadVariable] authn_yubikey/mod_authn_yubikey.c:497:11: style: Variable 'yubiKeyId' is assigned a value that is never used. [unreadVariable] authn_yubikey/mod_authn_yubikey.c:498:11: style: Variable 'realName' is assigned a value that is never used. [unreadVariable] authn_yubikey/mod_authn_yubikey.c:499:17: style: Variable 'dbFormFile' is assigned a value that is never used. [unreadVariable] diff: head authn_yubikey/mod_authn_yubikey.c:209:11: style: Variable 'file_password' can be declared as pointer to const [constVariablePointer] DONE