Add a key store to avoid storing secrets in the store
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use crate::api::key_store;
|
||||
use crate::api::user_presence::UserPresenceError;
|
||||
|
||||
// CTAP specification (version 20190130) section 6.3
|
||||
@@ -93,3 +94,9 @@ impl From<UserPresenceError> for Ctap2StatusCode {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<key_store::Error> for Ctap2StatusCode {
|
||||
fn from(_: key_store::Error) -> Self {
|
||||
Self::CTAP2_ERR_VENDOR_INTERNAL_ERROR
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user