re-introduce old nss im too tired for this

This commit is contained in:
wuggy 2026-06-30 06:37:32 +01:00
commit 3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions

View file

@ -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;