summaryrefslogtreecommitdiff
path: root/lib/freebl/rijndael.c
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2016-01-29 11:59:33 +0100
committerKai Engert <kaie@kuix.de>2016-01-29 11:59:33 +0100
commitcd1cbf4a7f4577ad57790747ae42b7e0a60dae69 (patch)
tree2362acac8ca1f507579c02753758c1ed0d15ef0e /lib/freebl/rijndael.c
parent9bc937bbc2de75f450bfc2b4ab2c796f6efddda9 (diff)
downloadnss-hg-cd1cbf4a7f4577ad57790747ae42b7e0a60dae69.tar.gz
Bug 1194680, Use PR_GetEnvSecure, r=jldNSS_3_23_BETA1
Diffstat (limited to 'lib/freebl/rijndael.c')
-rw-r--r--lib/freebl/rijndael.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/freebl/rijndael.c b/lib/freebl/rijndael.c
index 8b3704bed..f6e38f62b 100644
--- a/lib/freebl/rijndael.c
+++ b/lib/freebl/rijndael.c
@@ -7,6 +7,7 @@
#endif
#include "prinit.h"
+#include "prenv.h"
#include "prerr.h"
#include "secerr.h"
@@ -1041,7 +1042,7 @@ aes_InitContext(AESContext *cx, const unsigned char *key, unsigned int keysize,
#ifdef USE_HW_AES
if (has_intel_aes == 0) {
unsigned long eax, ebx, ecx, edx;
- char *disable_hw_aes = getenv("NSS_DISABLE_HW_AES");
+ char *disable_hw_aes = PR_GetEnvSecure("NSS_DISABLE_HW_AES");
if (disable_hw_aes == NULL) {
freebl_cpuid(1, &eax, &ebx, &ecx, &edx);