1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2019. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%
%% Reference: https://tools.ietf.org/html/draft-miller-ssh-agent-02
%% SSH Agent message numbers
%%
%% Reference: https://tools.ietf.org/html/draft-miller-ssh-agent-02#section-5.1
%% The following numbers are used for requests from the client to the agent.
-define(SSH_AGENTC_REQUEST_IDENTITIES, 11).
-define(SSH_AGENTC_SIGN_REQUEST, 13).
-define(SSH_AGENTC_ADD_IDENTITY, 17).
-define(SSH_AGENTC_REMOVE_IDENTITY, 18).
-define(SSH_AGENTC_REMOVE_ALL_IDENTITIES, 19).
-define(SSH_AGENTC_ADD_ID_CONSTRAINED, 25).
-define(SSH_AGENTC_ADD_SMARTCARD_KEY, 20).
-define(SSH_AGENTC_REMOVE_SMARTCARD_KEY, 21).
-define(SSH_AGENTC_LOCK, 22).
-define(SSH_AGENTC_UNLOCK, 23).
-define(SSH_AGENTC_ADD_SMARTCARD_KEY_CONSTRAINED, 26).
-define(SSH_AGENTC_EXTENSION, 27).
%% The following numbers are used for replies from the agent to the client.
-define(SSH_AGENT_FAILURE, 5).
-define(SSH_AGENT_SUCCESS, 6).
-define(SSH_AGENT_EXTENSION_FAILURE, 28).
-define(SSH_AGENT_IDENTITIES_ANSWER, 12).
-define(SSH_AGENT_SIGN_RESPONSE, 14).
%% SSH Agent signature flags
%%
%% Reference: https://tools.ietf.org/html/draft-miller-ssh-agent-02#section-5.3
-define(SSH_AGENT_RSA_SHA2_256, 2).
-define(SSH_AGENT_RSA_SHA2_512, 4).
%% SSH Agent messages
%%
%% Reference: https://tools.ietf.org/html/draft-miller-ssh-agent-02#section-4
%% 4.1 Generic server responses
-record(ssh_agent_success,
{
}).
-record(ssh_agent_failure,
{
}).
%% 4.4 Requesting a list of keys
-record(ssh_agent_identities_request,
{
}).
-record(ssh_agent_key,
{
blob, % string
comment % string
}).
-record(ssh_agent_identities_response,
{
keys % list of ssh_agent_key records
}).
%% 4.5 Private key operations
-record(ssh_agent_sign_request,
{
key_blob, % string
data, % string
flags % integer
}).
-record(ssh_agent_signature,
{
format, % string
blob % binary
}).
-record(ssh_agent_sign_response,
{
signature % ssh_agent_signature
}).
|