summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/crypto/api/kcf_miscapi.c
diff options
context:
space:
mode:
authormcpowers <none@none>2006-04-13 16:21:01 -0700
committermcpowers <none@none>2006-04-13 16:21:01 -0700
commit72eff6e227f67512593e6384d82fb5eb9be3121b (patch)
treec3c193e3fc1425356abb0f9e2fbc790e8bf75ba9 /usr/src/uts/common/crypto/api/kcf_miscapi.c
parentd80c45e0f58fa434ba37259ea2e2b12e0380c19a (diff)
downloadillumos-gate-72eff6e227f67512593e6384d82fb5eb9be3121b.tar.gz
6399680 logical provider selects busy member
Diffstat (limited to 'usr/src/uts/common/crypto/api/kcf_miscapi.c')
-rw-r--r--usr/src/uts/common/crypto/api/kcf_miscapi.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/usr/src/uts/common/crypto/api/kcf_miscapi.c b/usr/src/uts/common/crypto/api/kcf_miscapi.c
index 6242df6dc8..ca84a65c32 100644
--- a/usr/src/uts/common/crypto/api/kcf_miscapi.c
+++ b/usr/src/uts/common/crypto/api/kcf_miscapi.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -595,14 +594,9 @@ crypto_key_check_prov(crypto_provider_t provider, crypto_mechanism_t *mech,
(key->ck_format == CRYPTO_KEY_REFERENCE))
return (CRYPTO_ARGUMENTS_BAD);
+ /* no logical providers currently support the key check */
if (pd->pd_prov_type == CRYPTO_LOGICAL_PROVIDER) {
- rv = kcf_get_hardware_provider(mech->cm_type,
- CRYPTO_MECH_INVALID, CRYPTO_OPS_OFFSET(key_ops),
- CRYPTO_KEY_OFFSET(key_check), CHECK_RESTRICT_FALSE,
- pd, &real_provider);
-
- if (rv != CRYPTO_SUCCESS)
- return (rv);
+ return (CRYPTO_NOT_SUPPORTED);
}
lmech = *mech;