コード例 #1
0
ファイル: SSHRSA.C プロジェクト: marsupial/rikiglue
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;
}
コード例 #2
0
ファイル: SSHRSA.C プロジェクト: TortoiseGit/TortoiseGit
static char *rsa2_cache_str(ssh_key *key)
{
    RSAKey *rsa = container_of(key, RSAKey, sshk);
    return rsastr_fmt(rsa);
}