Task #119480 - added.err
back to task #119480download
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_ca_test.c: scope_hint: In function ‘verify_name_constraints’
sscg-sscg-4.0.3/test/create_ca_test.c:611:39: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘X509_EXTENSION_get_data’ discards ‘const’ qualifier from pointer target type
# 611 | ext_data = X509_EXTENSION_get_data (name_constraints_ext);
# | ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/x509v3.h:27: included_from: Included from here.
sscg-sscg-4.0.3/test/create_ca_test.c:38: included_from: Included from here.
/usr/include/openssl/x509.h:1147:60: note: expected ‘X509_EXTENSION *’ {aka ‘struct X509_extension_st *’} but argument is of type ‘const X509_EXTENSION *’ {aka ‘const struct X509_extension_st *’}
# 1147 | ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne);
# | ~~~~~~~~~~~~~~~~^~
# 609|
# 610| /* Get the extension data */
# 611|-> ext_data = X509_EXTENSION_get_data (name_constraints_ext);
# 612| if (!ext_data)
# 613| {
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_ca_test.c:611:39: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘X509_EXTENSION_get_data’ discards ‘const’ qualifier from pointer target type
# 609|
# 610| /* Get the extension data */
# 611|-> ext_data = X509_EXTENSION_get_data (name_constraints_ext);
# 612| if (!ext_data)
# 613| {
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_ca_test.c:629:31: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘X509V3_EXT_print’ discards ‘const’ qualifier from pointer target type
# 629 | if (!X509V3_EXT_print (bio, name_constraints_ext, 0, 0))
# | ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/x509v3.h:1002:48: note: expected ‘X509_EXTENSION *’ {aka ‘struct X509_extension_st *’} but argument is of type ‘const X509_EXTENSION *’ {aka ‘const struct X509_extension_st *’}
# 1002 | int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag,
# | ~~~~~~~~~~~~~~~~^~~
# 627|
# 628| /* Print the extension to the BIO */
# 629|-> if (!X509V3_EXT_print (bio, name_constraints_ext, 0, 0))
# 630| {
# 631| printf (" ERROR: Failed to print Name Constraints extension.\n");
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_ca_test.c:629:31: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘X509V3_EXT_print’ discards ‘const’ qualifier from pointer target type
# 627|
# 628| /* Print the extension to the BIO */
# 629|-> if (!X509V3_EXT_print (bio, name_constraints_ext, 0, 0))
# 630| {
# 631| printf (" ERROR: Failed to print Name Constraints extension.\n");
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_cert_test.c: scope_hint: In function ‘verify_name_constraints’
sscg-sscg-4.0.3/test/create_cert_test.c:88:39: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘X509_EXTENSION_get_data’ discards ‘const’ qualifier from pointer target type
# 88 | ext_data = X509_EXTENSION_get_data (name_constraints_ext);
# | ^~~~~~~~~~~~~~~~~~~~
sscg-sscg-4.0.3/test/create_cert_test.c:38: included_from: Included from here.
/usr/include/openssl/x509.h:1147:60: note: expected ‘X509_EXTENSION *’ {aka ‘struct X509_extension_st *’} but argument is of type ‘const X509_EXTENSION *’ {aka ‘const struct X509_extension_st *’}
# 1147 | ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne);
# | ~~~~~~~~~~~~~~~~^~
# 86|
# 87| /* Get the extension data */
# 88|-> ext_data = X509_EXTENSION_get_data (name_constraints_ext);
# 89| if (!ext_data)
# 90| {
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_cert_test.c:88:39: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘X509_EXTENSION_get_data’ discards ‘const’ qualifier from pointer target type
# 86|
# 87| /* Get the extension data */
# 88|-> ext_data = X509_EXTENSION_get_data (name_constraints_ext);
# 89| if (!ext_data)
# 90| {
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_cert_test.c:106:31: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘X509V3_EXT_print’ discards ‘const’ qualifier from pointer target type
# 106 | if (!X509V3_EXT_print (bio, name_constraints_ext, 0, 0))
# | ^~~~~~~~~~~~~~~~~~~~
sscg-sscg-4.0.3/test/create_cert_test.c:39: included_from: Included from here.
/usr/include/openssl/x509v3.h:1002:48: note: expected ‘X509_EXTENSION *’ {aka ‘struct X509_extension_st *’} but argument is of type ‘const X509_EXTENSION *’ {aka ‘const struct X509_extension_st *’}
# 1002 | int X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag,
# | ~~~~~~~~~~~~~~~~^~~
# 104|
# 105| /* Print the extension to the BIO */
# 106|-> if (!X509V3_EXT_print (bio, name_constraints_ext, 0, 0))
# 107| {
# 108| printf (" ERROR: Failed to print Name Constraints extension.\n");
Error: COMPILER_WARNING (CWE-704):
sscg-sscg-4.0.3/test/create_cert_test.c:106:31: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘X509V3_EXT_print’ discards ‘const’ qualifier from pointer target type
# 104|
# 105| /* Print the extension to the BIO */
# 106|-> if (!X509V3_EXT_print (bio, name_constraints_ext, 0, 0))
# 107| {
# 108| printf (" ERROR: Failed to print Name Constraints extension.\n");