Lines Matching refs:key
148 if (opt1->key && !opt2->key) in ceph_compare_options()
150 if (!opt1->key && opt2->key) in ceph_compare_options()
152 if (opt1->key && opt2->key) { in ceph_compare_options()
153 if (opt1->key->type != opt2->key->type) in ceph_compare_options()
155 if (opt1->key->created.tv_sec != opt2->key->created.tv_sec) in ceph_compare_options()
157 if (opt1->key->created.tv_nsec != opt2->key->created.tv_nsec) in ceph_compare_options()
159 if (opt1->key->len != opt2->key->len) in ceph_compare_options()
161 if (opt1->key->key && !opt2->key->key) in ceph_compare_options()
163 if (!opt1->key->key && opt2->key->key) in ceph_compare_options()
165 if (opt1->key->key && opt2->key->key) { in ceph_compare_options()
166 ret = memcmp(opt1->key->key, opt2->key->key, opt1->key->len); in ceph_compare_options()
283 if (opt->key) { in ceph_destroy_options()
284 ceph_crypto_key_destroy(opt->key); in ceph_destroy_options()
285 kfree(opt->key); in ceph_destroy_options()
294 struct key *ukey; in get_secret()
425 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_options()
426 if (!opt->key) { in ceph_parse_options()
430 err = ceph_crypto_key_unarmor(opt->key, argstr[0].from); in ceph_parse_options()
435 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_options()
436 if (!opt->key) { in ceph_parse_options()
440 err = get_secret(opt->key, argstr[0].from); in ceph_parse_options()
536 if (opt->key) in ceph_print_client_options()