From d9e5cf078ea5380da6df767bb1773802ec557ef0 Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Sat, 10 Feb 2018 09:25:34 +0000 Subject: upstream commit constify some private key-related functions; based on https://github.com/openssh/openssh-portable/pull/56 by Vincent Brillault OpenBSD-Commit-ID: dcb94a41834a15f4d00275cb5051616fdc4c988c --- authfd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'authfd.c') diff --git a/authfd.c b/authfd.c index ac635dff..148bc9bf 100644 --- a/authfd.c +++ b/authfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authfd.c,v 1.106 2018/01/23 05:27:21 djm Exp $ */ +/* $OpenBSD: authfd.c,v 1.107 2018/02/10 09:25:34 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -391,7 +391,7 @@ ssh_agent_sign(int sock, const struct sshkey *key, static int -ssh_encode_identity_ssh2(struct sshbuf *b, struct sshkey *key, +ssh_encode_identity_ssh2(struct sshbuf *b, const struct sshkey *key, const char *comment) { int r; @@ -426,8 +426,8 @@ encode_constraints(struct sshbuf *m, u_int life, u_int confirm) * This call is intended only for use by ssh-add(1) and like applications. */ int -ssh_add_identity_constrained(int sock, struct sshkey *key, const char *comment, - u_int life, u_int confirm) +ssh_add_identity_constrained(int sock, const struct sshkey *key, + const char *comment, u_int life, u_int confirm) { struct sshbuf *msg; int r, constrained = (life || confirm); -- cgit v1.2.1