1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: fix comments

This commit is contained in:
Aris Adamantiadis
2013-07-13 23:01:30 +02:00
parent 9d88dcab3e
commit bf5e5eebd7

View File

@@ -1260,7 +1260,7 @@ int ssh_pki_signature_verify_blob(ssh_session session,
} }
/* /*
* This function signs the session id (known as H) as a string then * This function signs the session id as a string then
* the content of sigbuf */ * the content of sigbuf */
ssh_string ssh_pki_do_sign(ssh_session session, ssh_string ssh_pki_do_sign(ssh_session session,
ssh_buffer sigbuf, ssh_buffer sigbuf,
@@ -1284,7 +1284,7 @@ ssh_string ssh_pki_do_sign(ssh_session session,
return NULL; return NULL;
} }
ssh_string_fill(session_id, crypto->session_id, crypto->digest_len); ssh_string_fill(session_id, crypto->session_id, crypto->digest_len);
/* TODO: change when supporting ECDSA keys */
ctx = sha1_init(); ctx = sha1_init();
if (ctx == NULL) { if (ctx == NULL) {
ssh_string_free(session_id); ssh_string_free(session_id);