This will let us know whether we can add a key mount option
if no secret is specified.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
return ret;
}
+int is_kernel_secret(const char *key_name)
+{
+ key_serial_t serial;
+ serial = request_key("ceph", key_name, NULL, KEY_SPEC_USER_KEYRING);
+ return serial != -1;
+}
+
int get_secret_option(const char *secret, const char *key_name, char *secret_option, size_t max_len)
{
int ret;
*/
int get_secret_option(const char *secret, const char *key_name, char *secret_option, size_t secret_option_len);
+int is_kernel_secret(const char *key_name);
+
#ifdef __cplusplus
}
#endif