Lines Matching refs:key

155 	if (opt1->key && !opt2->key)  in ceph_compare_options()
157 if (!opt1->key && opt2->key) in ceph_compare_options()
159 if (opt1->key && opt2->key) { in ceph_compare_options()
160 if (opt1->key->type != opt2->key->type) in ceph_compare_options()
162 if (opt1->key->created.tv_sec != opt2->key->created.tv_sec) in ceph_compare_options()
164 if (opt1->key->created.tv_nsec != opt2->key->created.tv_nsec) in ceph_compare_options()
166 if (opt1->key->len != opt2->key->len) in ceph_compare_options()
168 if (opt1->key->key && !opt2->key->key) in ceph_compare_options()
170 if (!opt1->key->key && opt2->key->key) in ceph_compare_options()
172 if (opt1->key->key && opt2->key->key) { in ceph_compare_options()
173 ret = memcmp(opt1->key->key, opt2->key->key, opt1->key->len); in ceph_compare_options()
344 if (opt->key) { in ceph_destroy_options()
345 ceph_crypto_key_destroy(opt->key); in ceph_destroy_options()
346 kfree(opt->key); in ceph_destroy_options()
357 struct key *ukey; in get_secret()
426 dout("%s fs_parse '%s' token %d\n", __func__, param->key, token); in ceph_parse_param()
456 ceph_crypto_key_destroy(opt->key); in ceph_parse_param()
457 kfree(opt->key); in ceph_parse_param()
459 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param()
460 if (!opt->key) in ceph_parse_param()
462 err = ceph_crypto_key_unarmor(opt->key, param->string); in ceph_parse_param()
469 ceph_crypto_key_destroy(opt->key); in ceph_parse_param()
470 kfree(opt->key); in ceph_parse_param()
472 opt->key = kzalloc(sizeof(*opt->key), GFP_KERNEL); in ceph_parse_param()
473 if (!opt->key) in ceph_parse_param()
475 return get_secret(opt->key, param->string, &log); in ceph_parse_param()
600 return inval_plog(&log, "%s out of range", param->key); in ceph_parse_param()
616 if (opt->key) in ceph_print_client_options()