mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -6,7 +6,6 @@
|
|||
#include "stubs.h"
|
||||
#endif
|
||||
#include "prtypes.h"
|
||||
#include "prenv.h"
|
||||
#include "secerr.h"
|
||||
#include "blapi.h"
|
||||
#include "hasht.h"
|
||||
|
|
@ -31,12 +30,6 @@ nsslow_GetFIPSEnabled(void)
|
|||
FILE *f;
|
||||
char d;
|
||||
size_t size;
|
||||
const char *env;
|
||||
|
||||
env = PR_GetEnvSecure("NSS_FIPS");
|
||||
if (env && (*env == 'y' || *env == 'f' || *env == '1' || *env == 't')) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
f = fopen("/proc/sys/crypto/fips_enabled", "r");
|
||||
if (!f)
|
||||
|
|
@ -67,7 +60,7 @@ NSSLOW_Init(void)
|
|||
/* make sure the FIPS product is installed if we are trying to
|
||||
* go into FIPS mode */
|
||||
if (nsslow_GetFIPSEnabled()) {
|
||||
if (BL_FIPSEntryOK(PR_TRUE, PR_FALSE) != SECSuccess) {
|
||||
if (BL_FIPSEntryOK(PR_TRUE) != SECSuccess) {
|
||||
PORT_SetError(SEC_ERROR_LIBRARY_FAILURE);
|
||||
post_failed = PR_TRUE;
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue