Update X509_get_default_cert_* stubs to return empty strings.

According to the documentation, these functions must return static strings, so NULL was not valid.

Fixes #6474.
This commit is contained in:
Kareem
2025-12-26 15:26:05 -07:00
parent 6145f3aba2
commit 7d04a53a6c
2 changed files with 8 additions and 8 deletions

View File

@@ -528,10 +528,10 @@ int test_wolfSSL_X509(void)
ExpectIntEQ(X509_verify_cert(ctx), SSL_SUCCESS);
#ifndef NO_WOLFSSL_STUB
ExpectNull(X509_get_default_cert_file_env());
ExpectNull(X509_get_default_cert_file());
ExpectNull(X509_get_default_cert_dir_env());
ExpectNull(X509_get_default_cert_dir());
ExpectStrEQ(X509_get_default_cert_file_env(), "");
ExpectStrEQ(X509_get_default_cert_file(), "");
ExpectStrEQ(X509_get_default_cert_dir_env(), "");
ExpectStrEQ(X509_get_default_cert_dir(), "");
#endif
ExpectNull(wolfSSL_X509_get_der(NULL, NULL));