diff options
author | Hans Nilsson <[email protected]> | 2015-10-15 10:25:19 +0200 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2015-10-16 12:38:26 +0200 |
commit | 255f36937752404038f32ca67f438f13ef8ce4fb (patch) | |
tree | 128252118da785bc31b613e676bad0cd541775aa /lib/public_key/src/pubkey_ssh.erl | |
parent | 19eec0552c6b4e5024e307d2376c061665007e4f (diff) | |
download | otp-255f36937752404038f32ca67f438f13ef8ce4fb.tar.gz otp-255f36937752404038f32ca67f438f13ef8ce4fb.tar.bz2 otp-255f36937752404038f32ca67f438f13ef8ce4fb.zip |
public_key: add/update -spec for ssh functions
Diffstat (limited to 'lib/public_key/src/pubkey_ssh.erl')
-rw-r--r-- | lib/public_key/src/pubkey_ssh.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/public_key/src/pubkey_ssh.erl b/lib/public_key/src/pubkey_ssh.erl index ba67abb4eb..82042550a0 100644 --- a/lib/public_key/src/pubkey_ssh.erl +++ b/lib/public_key/src/pubkey_ssh.erl @@ -41,7 +41,9 @@ %%-------------------------------------------------------------------- -spec decode(binary(), public_key | public_key:ssh_file()) -> - [{public_key:public_key(), Attributes::list()}]. + [{public_key:public_key(), Attributes::list()}] + ; (binary(), ssh2_pubkey) -> public_key:public_key() + . %% %% Description: Decodes a ssh file-binary. %%-------------------------------------------------------------------- @@ -61,7 +63,9 @@ decode(Bin, Type) -> %%-------------------------------------------------------------------- -spec encode([{public_key:public_key(), Attributes::list()}], public_key:ssh_file()) -> - binary(). + binary() + ; (public_key:public_key(), ssh2_pubkey) -> binary() + . %% %% Description: Encodes a list of ssh file entries. %%-------------------------------------------------------------------- |