X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsecurity%2Fopenssl.c;fp=lib%2Fsecurity%2Fopenssl.c;h=6454f8a8668c14b2db7f5f3961a792ea9f4b5685;hb=18a47a31b46d916c58a31e8784a7c3a3abcae446;hp=03ea3326484fe1e1b1ab96de072163086d7379f7;hpb=32952937bc5c3753ff2f8f4612da5ba51bf69759;p=petitboot diff --git a/lib/security/openssl.c b/lib/security/openssl.c index 03ea332..6454f8a 100644 --- a/lib/security/openssl.c +++ b/lib/security/openssl.c @@ -456,8 +456,10 @@ int lockdown_status(void) int ret = PB_LOCKDOWN_SIGN; PKCS12 *p12 = NULL; +#if !defined(HARD_LOCKDOWN) if (access(LOCKDOWN_FILE, F_OK) == -1) return PB_LOCKDOWN_NONE; +#endif /* determine lockdown type */ @@ -471,6 +473,6 @@ int lockdown_status(void) fclose(authorized_signatures_handle); } - return ret; + return ret; }