Skip to content

Commit 92560ae

Browse files
Merge pull request #1059 from jameshilliard/check-opal-get-status
crypto: check that IOC_OPAL_GET_STATUS is defined
2 parents 099678d + 9810271 commit 92560ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3642,7 +3642,7 @@ gboolean bd_crypto_fvault2_close (const gchar *fvault2_device, GError **error) {
36423642
*
36433643
* Tech category: %BD_CRYPTO_TECH_SED_OPAL-%BD_CRYPTO_TECH_MODE_QUERY
36443644
*/
3645-
#ifndef HAVE_LINUX_OPAL
3645+
#if !defined(HAVE_LINUX_OPAL) || !defined(IOC_OPAL_GET_STATUS)
36463646
gboolean bd_crypto_opal_is_supported (const gchar *device G_GNUC_UNUSED, GError **error) {
36473647
/* this will return FALSE and set error, because OPAL technology is not available */
36483648
return bd_crypto_is_tech_avail (BD_CRYPTO_TECH_SED_OPAL, BD_CRYPTO_TECH_MODE_QUERY, error);

0 commit comments

Comments
 (0)