1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00

Missed a couple SYSTEM_ prefixes

This commit is contained in:
Clint Nelissen 2014-12-04 08:28:05 -08:00
parent f7fb93276a
commit 19b4d0ec0c

View File

@ -135,7 +135,7 @@ class System_SSH_Agent_Identity
function sign($message)
{
// the last parameter (currently 0) is for flags and ssh-agent only defines one flag (for ssh-dss): SSH_AGENT_OLD_SIGNATURE
$packet = pack('CNa*Na*N', System_SSH_Agent::SYSTEM_SSH_AGENTC_SIGN_REQUEST, strlen($this->key_blob), $this->key_blob, strlen($message), $message, 0);
$packet = pack('CNa*Na*N', System_SSH_Agent::SSH_AGENTC_SIGN_REQUEST, strlen($this->key_blob), $this->key_blob, strlen($message), $message, 0);
$packet = pack('Na*', strlen($packet), $packet);
if (strlen($packet) != fputs($this->fsock, $packet)) {
user_error('Connection closed during signing');
@ -143,7 +143,7 @@ class System_SSH_Agent_Identity
$length = current(unpack('N', fread($this->fsock, 4)));
$type = ord(fread($this->fsock, 1));
if ($type != System_SSH_Agent::SYSTEM_SSH_AGENT_SIGN_RESPONSE) {
if ($type != System_SSH_Agent::SSH_AGENT_SIGN_RESPONSE) {
user_error('Unable to retreive signature');
}