Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions unit/test-eapol.c
Original file line number Diff line number Diff line change
Expand Up @@ -3923,6 +3923,16 @@ static bool aes_precheck(const void *data)

static bool pkcs8_precheck(const void *data)
{
struct stat s;

/* Despite the path, this directory exists whether the module
* is external or built-in. */
if (stat ("/sys/module/pkcs8_key_parser", &s) != 0)
return false;

if (!S_ISDIR (s.st_mode))
return false;

return (IS_ENABLED(HAVE_PKCS8_SUPPORT) &&
l_cipher_is_supported(L_CIPHER_AES) &&
l_cipher_is_supported(L_CIPHER_AES_CBC) &&
Expand Down
Loading