Snippets for cryptlib 3.4.7 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/cryptlib/3.4.7/150amd64-default.log.
-
device/pkcs11_init.c:1274:25: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] 1274 | strStripWhitespace( &labelPtr, tokenInfo.label, 32 ); | ^~~~~~~~~ -
device/pkcs11_rd.c:175:11: warning: incompatible pointer types passing 'char **' to parameter of type 'void **' [-Wincompatible-pointer-types] 175 | &localLabel, &localLabelLength, | ^~~~~~~~~~~ -
device/pkcs11_rd.c:382:22: warning: format specifies type 'int' but the argument has type 'CK_KEY_TYPE' (aka 'unsigned long') [-Wformat] 381 | "PKCS #11 algorithm type %d for object isn't available " | ~~ | %lu 382 | "in cryptlib", keyType ) ); | ^~~~~~~ -
device/pkcs11_rd.c:422:11: warning: incompatible pointer types passing 'BYTE **' (aka 'unsigned char **') to parameter of type 'void **' [-Wincompatible-pointer-types] 422 | &ecOid, &ecOidLength, ecOidBuffer, | ^~~~~~ -
device/pkcs11_rd.c:641:11: warning: incompatible pointer types passing 'BYTE **' (aka 'unsigned char **') to parameter of type 'void **' [-Wincompatible-pointer-types] 641 | &bufPtr, &length, buffer, | ^~~~~~~ -
device/pkcs11_rd.c:853:11: warning: incompatible pointer types passing 'BYTE **' (aka 'unsigned char **') to parameter of type 'void **' [-Wincompatible-pointer-types] 853 | &bufPtr, &length, buffer, | ^~~~~~~ -
device/pkcs11_rd.c:1067:64: warning: incompatible pointer types passing 'BYTE **' (aka 'unsigned char **') to parameter of type 'void **' [-Wincompatible-pointer-types] 1067 | cryptStatus = getAttributeValue( pkcs11Info, hObject, CKA_ID, &bufPtr, | ^~~~~~~ -
kernel/int_msg.c:417:16: warning: cast to smaller integer type 'int' from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] 417 | *valuePtr = ( int ) objectInfoPtr->objectOwner; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
kernel/int_msg.c:535:35: warning: cast to 'pthread_t' (aka 'struct pthread *') from smaller integer type 'int' [-Wint-to-pointer-cast] 535 | objectInfoPtr->objectOwner = ( THREAD_HANDLE ) value; | ^~~~~~~~~~~~~~~~~~~~~~~ -
cryptcrt.c:29:10: warning: Building with nonstandard compliance level CERTLEVEL_PKIX_PARTIAL. [-W#pragma-messages] 29 | #pragma message( " Building with nonstandard compliance level CERTLEVEL_PKIX_PARTIAL." ) | ^ -
test/loadkey.c:778:25: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 776 | "cryptlib but %d in the test code,\n" | ~~ | %lu 777 | "has CONFIG_PKC_ALLOCSIZE been used inconsistently?\n", 778 | CRYPT_MAX_PKCSIZE, sizeof( rsaTestStructure.n ) ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
test/sreqresp.c:1073:30: warning: '/*' within block comment [-Wcomment] 1073 | /* #define OCSP_SIGN_REQUEST /**/ | ^ -
test/testfunc.c:1406:25: warning: '/*' within block comment [-Wcomment] 1406 | /*#define TEST_MEMFAULT /* Undefine to perform memory-fault tests */ | ^ -
test/util_os.c:866:19: warning: format specifies type 'int' but the argument has type 'HIRES_TIME' (aka 'unsigned long') [-Wformat] 866 | printf( "%d, ", times[ i ] ); | ~~ ^~~~~~~~~~ | %lu