ssl_verify_openssl.c:263:60: error: passing argument 1 of 'wolfSSL_ASN1_STRING_get0_data' from incompatible pointer type [-Wincompatible-pointer-types]
263 | char *serial = format_hex_ex(ASN1_STRING_get0_data(asn1_i), ASN1_STRING_length(asn1_i), 0, 1 | FHE_CAPS, NULL, &gc);
| ^~~~~~
| |
| WOLFSSL_ASN1_INTEGER *
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2357:72: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'WOLFSSL_ASN1_INTEGER *'
2357 | const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ssl_verify_openssl.c:263:88: error: passing argument 1 of 'wolfSSL_ASN1_STRING_length' from incompatible pointer type [-Wincompatible-pointer-types]
263 | char *serial = format_hex_ex(ASN1_STRING_get0_data(asn1_i), ASN1_STRING_length(asn1_i), 0, 1 | FHE_CAPS, NULL, &gc);
| ^~~~~~
| |
| WOLFSSL_ASN1_INTEGER *
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2358:71: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'WOLFSSL_ASN1_INTEGER *'
2358 | WOLFSSL_API int wolfSSL_ASN1_STRING_length(const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ssl_verify_openssl.c: In function 'backend_x509_get_serial_hex':
ssl_verify_openssl.c:317:48: error: passing argument 1 of 'wolfSSL_ASN1_STRING_get0_data' from incompatible pointer type [-Wincompatible-pointer-types]
317 | return format_hex_ex(ASN1_STRING_get0_data(asn1_i), ASN1_STRING_length(asn1_i), 0, 1, ":", gc);
| ^~~~~~
| |
| const WOLFSSL_ASN1_INTEGER *
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2357:72: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'const WOLFSSL_ASN1_INTEGER *'
2357 | const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ssl_verify_openssl.c:317:76: error: passing argument 1 of 'wolfSSL_ASN1_STRING_length' from incompatible pointer type [-Wincompatible-pointer-types]
317 | return format_hex_ex(ASN1_STRING_get0_data(asn1_i), ASN1_STRING_length(asn1_i), 0, 1, ":", gc);
| ^~~~~~
| |
| const WOLFSSL_ASN1_INTEGER *
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2358:71: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'const WOLFSSL_ASN1_INTEGER *'
2358 | WOLFSSL_API int wolfSSL_ASN1_STRING_length(const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ssl_verify_openssl.c: In function 'x509_verify_ns_cert_type':
ssl_verify_openssl.c:630:48: error: passing argument 1 of 'wolfSSL_ASN1_STRING_length' from incompatible pointer type [-Wincompatible-pointer-types]
630 | result = (ns && ASN1_STRING_length(ns) > 0 && (ASN1_STRING_get0_data(ns)[0] & NS_SSL_CLIENT)) ? SUCCESS : FAILURE;
| ^~
| |
| ASN1_BIT_STRING * {aka WOLFSSL_ASN1_BIT_STRING *}
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2358:71: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'ASN1_BIT_STRING *' {aka 'WOLFSSL_ASN1_BIT_STRING *'}
2358 | WOLFSSL_API int wolfSSL_ASN1_STRING_length(const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ssl_verify_openssl.c:630:82: error: passing argument 1 of 'wolfSSL_ASN1_STRING_get0_data' from incompatible pointer type [-Wincompatible-pointer-types]
630 | result = (ns && ASN1_STRING_length(ns) > 0 && (ASN1_STRING_get0_data(ns)[0] & NS_SSL_CLIENT)) ? SUCCESS : FAILURE;
| ^~
| |
| ASN1_BIT_STRING * {aka WOLFSSL_ASN1_BIT_STRING *}
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2357:72: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'ASN1_BIT_STRING *' {aka 'WOLFSSL_ASN1_BIT_STRING *'}
2357 | const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ssl_verify_openssl.c:658:48: error: passing argument 1 of 'wolfSSL_ASN1_STRING_length' from incompatible pointer type [-Wincompatible-pointer-types]
658 | result = (ns && ASN1_STRING_length(ns) > 0 && (ASN1_STRING_get0_data(ns)[0] & NS_SSL_SERVER)) ? SUCCESS : FAILURE;
| ^~
| |
| ASN1_BIT_STRING * {aka WOLFSSL_ASN1_BIT_STRING *}
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2358:71: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'ASN1_BIT_STRING *' {aka 'WOLFSSL_ASN1_BIT_STRING *'}
2358 | WOLFSSL_API int wolfSSL_ASN1_STRING_length(const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
ssl_verify_openssl.c:658:82: error: passing argument 1 of 'wolfSSL_ASN1_STRING_get0_data' from incompatible pointer type [-Wincompatible-pointer-types]
658 | result = (ns && ASN1_STRING_length(ns) > 0 && (ASN1_STRING_get0_data(ns)[0] & NS_SSL_SERVER)) ? SUCCESS : FAILURE;
| ^~
| |
| ASN1_BIT_STRING * {aka WOLFSSL_ASN1_BIT_STRING *}
/builder/staging_dir/target-mips_24kc_musl/usr/include/wolfssl/ssl.h:2357:72: note: expected 'const WOLFSSL_ASN1_STRING *' but argument is of type 'ASN1_BIT_STRING *' {aka 'WOLFSSL_ASN1_BIT_STRING *'}
2357 | const WOLFSSL_ASN1_STRING* asn);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
dc4a925
@cron2 @heitbaum