mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-02-04 00:45:05 +01:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user