[openssh-commits] [openssh] 04/05: upstream: make sshbuf_dump() args const

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jun 5 13:28:38 AEST 2020


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 69796297c812640415c6cea074ea61afc899cbaa
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Fri Jun 5 03:24:36 2020 +0000

    upstream: make sshbuf_dump() args const
    
    OpenBSD-Commit-ID: b4a5accae750875d665b862504169769bcf663bd
---
 sshbuf-misc.c | 4 ++--
 sshbuf.h      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sshbuf-misc.c b/sshbuf-misc.c
index 9b5aa208..86e5fa34 100644
--- a/sshbuf-misc.c
+++ b/sshbuf-misc.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: sshbuf-misc.c,v 1.14 2020/02/26 13:40:09 jsg Exp $	*/
+/*	$OpenBSD: sshbuf-misc.c,v 1.15 2020/06/05 03:24:36 djm Exp $	*/
 /*
  * Copyright (c) 2011 Damien Miller
  *
@@ -63,7 +63,7 @@ sshbuf_dump_data(const void *s, size_t len, FILE *f)
 }
 
 void
-sshbuf_dump(struct sshbuf *buf, FILE *f)
+sshbuf_dump(const struct sshbuf *buf, FILE *f)
 {
 	fprintf(f, "buffer %p len = %zu\n", buf, sshbuf_len(buf));
 	sshbuf_dump_data(sshbuf_ptr(buf), sshbuf_len(buf), f);
diff --git a/sshbuf.h b/sshbuf.h
index 94392c8b..ec7514eb 100644
--- a/sshbuf.h
+++ b/sshbuf.h
@@ -1,4 +1,4 @@
-/*	$OpenBSD: sshbuf.h,v 1.21 2020/04/26 09:38:14 dtucker Exp $	*/
+/*	$OpenBSD: sshbuf.h,v 1.22 2020/06/05 03:24:36 djm Exp $	*/
 /*
  * Copyright (c) 2011 Damien Miller
  *
@@ -242,7 +242,7 @@ int	sshbuf_put_eckey(struct sshbuf *buf, const EC_KEY *v);
 #endif /* WITH_OPENSSL */
 
 /* Dump the contents of the buffer in a human-readable format */
-void	sshbuf_dump(struct sshbuf *buf, FILE *f);
+void	sshbuf_dump(const struct sshbuf *buf, FILE *f);
 
 /* Dump specified memory in a human-readable format */
 void	sshbuf_dump_data(const void *s, size_t len, FILE *f);

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list