Lines Matching refs:pk_key
71 static int dst_s_read_private_key_file(char *name, DST_KEY *pk_key,
812 * pk_key Structure that the key is returned in.
820 dst_s_read_private_key_file(char *name, DST_KEY *pk_key, u_int16_t in_id,
831 if (name == NULL || pk_key == NULL) {
889 if (pk_key->dk_key_name && !strcmp(pk_key->dk_key_name, name))
890 SAFE_FREE2(pk_key->dk_key_name, strlen(pk_key->dk_key_name));
891 pk_key->dk_key_name = (char *) strdup(name);
894 if (pk_key->dk_func == NULL || pk_key->dk_func->from_file_fmt == NULL)
897 ret = pk_key->dk_func->from_file_fmt(pk_key, (char *)p, &in_buff[len] - p);
901 dnslen = dst_key_to_dnskey(pk_key, dns, sizeof(dns));
910 pk_key->dk_id = (u_int16_t) id;
911 pk_key->dk_alg = alg;