static char *rsa2_fmtkey(void *key) { struct RSAKey *rsa = (struct RSAKey *) key; char *p; int len; len = rsastr_len(rsa); p = snewn(len, char); rsastr_fmt(p, rsa); return p; }
static char *rsa2_cache_str(ssh_key *key) { RSAKey *rsa = container_of(key, RSAKey, sshk); return rsastr_fmt(rsa); }