copykey
struct ipsec_key *copykey(struct ipsec_key *);
r->authkey = copykey(rule->authkey);
r->enckey = copykey(rule->enckey);