| 493 | } |
| 494 | |
| 495 | int FSCryptKeyStore::_find(const struct ceph_fscrypt_key_identifier& id, FSCryptKeyHandlerRef& kh) |
| 496 | { |
| 497 | auto iter = m.find(id); |
| 498 | if (iter == m.end()) { |
| 499 | return -ENOKEY; |
| 500 | } |
| 501 | |
| 502 | kh = iter->second; |
| 503 | |
| 504 | return 0; |
| 505 | } |
| 506 | |
| 507 | int FSCryptKeyStore::find(const struct ceph_fscrypt_key_identifier& id, FSCryptKeyHandlerRef& kh) |
| 508 | { |