diff options
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: authfd.c,v 1.103 2017/05/05 10:42:49 naddy Exp $ */ | 1 | /* $OpenBSD: authfd.c,v 1.104 2017/06/28 01:09:22 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -326,7 +326,7 @@ ssh_free_identitylist(struct ssh_identitylist *idl) | |||
326 | 326 | ||
327 | /* encode signature algoritm in flag bits, so we can keep the msg format */ | 327 | /* encode signature algoritm in flag bits, so we can keep the msg format */ |
328 | static u_int | 328 | static u_int |
329 | agent_encode_alg(struct sshkey *key, const char *alg) | 329 | agent_encode_alg(const struct sshkey *key, const char *alg) |
330 | { | 330 | { |
331 | if (alg != NULL && key->type == KEY_RSA) { | 331 | if (alg != NULL && key->type == KEY_RSA) { |
332 | if (strcmp(alg, "rsa-sha2-256") == 0) | 332 | if (strcmp(alg, "rsa-sha2-256") == 0) |
@@ -339,7 +339,7 @@ agent_encode_alg(struct sshkey *key, const char *alg) | |||
339 | 339 | ||
340 | /* ask agent to sign data, returns err.h code on error, 0 on success */ | 340 | /* ask agent to sign data, returns err.h code on error, 0 on success */ |
341 | int | 341 | int |
342 | ssh_agent_sign(int sock, struct sshkey *key, | 342 | ssh_agent_sign(int sock, const struct sshkey *key, |
343 | u_char **sigp, size_t *lenp, | 343 | u_char **sigp, size_t *lenp, |
344 | const u_char *data, size_t datalen, const char *alg, u_int compat) | 344 | const u_char *data, size_t datalen, const char *alg, u_int compat) |
345 | { | 345 | { |