changeset 10584:b6eb77b5edec

6883089 The changes made to pkcs11_softtoken.so in snv_124 cause many crypto failures on local zones
author Hai-May Chao <Hai-May.Chao@Sun.COM>
date Fri, 18 Sep 2009 15:55:18 -0700
parents 1058268e7f53
children e59699fcc4b6
files usr/src/lib/libcryptoutil/common/config_parsing.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libcryptoutil/common/config_parsing.c	Fri Sep 18 14:25:49 2009 -0700
+++ b/usr/src/lib/libcryptoutil/common/config_parsing.c	Fri Sep 18 15:55:18 2009 -0700
@@ -597,9 +597,10 @@
 	char *token1;
 
 	if ((pfile = fopen(_PATH_KCF_CONF, "r")) == NULL) {
-		cryptoerror(LOG_ERR,
+		cryptoerror(LOG_DEBUG,
 		    "failed to open the kcf.conf file for read only.");
-		return (CKR_FUNCTION_FAILED);
+		*mode = CRYPTO_FIPS_MODE_DISABLED;
+		return (CKR_OK);
 	}
 
 	while (fgets(buffer, BUFSIZ, pfile) != NULL) {