diff options
author | Hans Nilsson <[email protected]> | 2015-10-14 17:47:13 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-10-16 12:38:25 +0200 |
commit | 19eec0552c6b4e5024e307d2376c061665007e4f (patch) | |
tree | be29b54766992a84b6dce232b41b4a63a7d31bbd /lib/public_key/src/public_key.erl | |
parent | 01d1e4dc9a6e7ea958683ab419dea38bf576a39f (diff) | |
download | otp-19eec0552c6b4e5024e307d2376c061665007e4f.tar.gz otp-19eec0552c6b4e5024e307d2376c061665007e4f.tar.bz2 otp-19eec0552c6b4e5024e307d2376c061665007e4f.zip |
ssh, public_key: use pubkey encode/decode in app public_key
Diffstat (limited to 'lib/public_key/src/public_key.erl')
-rw-r--r-- | lib/public_key/src/public_key.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public_key/src/public_key.erl b/lib/public_key/src/public_key.erl index 2b04b3f79b..941ade3dd7 100644 --- a/lib/public_key/src/public_key.erl +++ b/lib/public_key/src/public_key.erl @@ -725,7 +725,8 @@ ssh_decode(SshBin, Type) when is_binary(SshBin), Type == rfc4716_public_key; Type == openssh_public_key; Type == auth_keys; - Type == known_hosts -> + Type == known_hosts; + Type == ssh2_pubkey -> pubkey_ssh:decode(SshBin, Type). %%-------------------------------------------------------------------- @@ -739,7 +740,8 @@ ssh_encode(Entries, Type) when is_list(Entries), Type == rfc4716_public_key; Type == openssh_public_key; Type == auth_keys; - Type == known_hosts -> + Type == known_hosts; + Type == ssh2_pubkey -> pubkey_ssh:encode(Entries, Type). %%-------------------------------------------------------------------- |