From 38acf11889c1e1da2610c8e05f1f380f2a2a1ae6 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 09:47:29 +0100 Subject: Use putenv() instead of setenv() Since older operating systems don't support setenv() --- common/tests/test-asn1.c | 2 +- common/tests/test-attrs.c | 2 +- common/tests/test-buffer.c | 2 +- common/tests/test-oid.c | 2 +- common/tests/test-x509.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/tests/test-asn1.c b/common/tests/test-asn1.c index 34e9129..0034623 100644 --- a/common/tests/test-asn1.c +++ b/common/tests/test-asn1.c @@ -96,7 +96,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_tlv_length); diff --git a/common/tests/test-attrs.c b/common/tests/test-attrs.c index ccbb801..09d0ace 100644 --- a/common/tests/test-attrs.c +++ b/common/tests/test-attrs.c @@ -575,7 +575,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_equal); diff --git a/common/tests/test-buffer.c b/common/tests/test-buffer.c index 9db5f83..baf7b73 100644 --- a/common/tests/test-buffer.c +++ b/common/tests/test-buffer.c @@ -192,7 +192,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_init_uninit); diff --git a/common/tests/test-oid.c b/common/tests/test-oid.c index 7c185ad..71b8278 100644 --- a/common/tests/test-oid.c +++ b/common/tests/test-oid.c @@ -116,7 +116,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_known_oids); diff --git a/common/tests/test-x509.c b/common/tests/test-x509.c index 6da26bf..08c269d 100644 --- a/common/tests/test-x509.c +++ b/common/tests/test-x509.c @@ -421,7 +421,7 @@ main (void) CuSuite* suite = CuSuiteNew (); int ret; - setenv ("P11_KIT_STRICT", "1", 1); + putenv ("P11_KIT_STRICT=1"); p11_debug_init (); SUITE_ADD_TEST (suite, test_parse_extended_key_usage); -- cgit v1.1