]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: make sshbuf_dump() args const
authordjm@openbsd.org <djm@openbsd.org>
Fri, 5 Jun 2020 03:24:36 +0000 (03:24 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 5 Jun 2020 03:28:29 +0000 (13:28 +1000)
OpenBSD-Commit-ID: b4a5accae750875d665b862504169769bcf663bd

sshbuf-misc.c
sshbuf.h

index 9b5aa208cd971e3d1a5c7c4ab779dc5c039660b5..86e5fa34f2336dd97b2d8ee17c116cad9f86fdf6 100644 (file)
@@ -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);
index 94392c8beaa8a6ac9bb7bc86079c06a571ab966b..ec7514eb31544df988a4a5d94e6ce7bcc45f1467 100644 (file)
--- 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);