summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-02-24 15:55:36 +1100
committerDamien Miller <djm@mindrot.org>2014-02-24 15:55:36 +1100
commitd3cf67e1117c25d151d0f86396e77ee3a827045a (patch)
treea20a83d6f1ebadd4f444ce40a97dba6f67db8080
parent03ae081aeaa118361c81ece76eb7cc1aaa2b40c5 (diff)
- djm@cvs.openbsd.org 2014/02/07 06:55:54
[cipher.c mac.c] remove some logging that makes ssh debugging output very verbose; ok markus
-rw-r--r--ChangeLog7
-rw-r--r--cipher.c4
-rw-r--r--mac.c11
3 files changed, 13 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index d44388c1..057582f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+20140224
+ - OpenBSD CVS Sync
+ - djm@cvs.openbsd.org 2014/02/07 06:55:54
+ [cipher.c mac.c]
+ remove some logging that makes ssh debugging output very verbose;
+ ok markus
+
20140221
- (tim) [configure.ac] Fix cut-and-paste error. Patch from Bryan Drewery.
diff --git a/cipher.c b/cipher.c
index ee79a1ef..53d9b4fb 100644
--- a/cipher.c
+++ b/cipher.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cipher.c,v 1.96 2014/02/02 03:44:31 djm Exp $ */
+/* $OpenBSD: cipher.c,v 1.97 2014/02/07 06:55:54 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -228,8 +228,6 @@ ciphers_valid(const char *names)
debug("bad cipher %s [%s]", p, names);
free(cipher_list);
return 0;
- } else {
- debug3("cipher ok: %s [%s]", p, names);
}
}
debug3("ciphers ok: [%s]", names);
diff --git a/mac.c b/mac.c
index 4c4a6bf5..09775721 100644
--- a/mac.c
+++ b/mac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mac.c,v 1.27 2014/01/27 18:58:14 markus Exp $ */
+/* $OpenBSD: mac.c,v 1.28 2014/02/07 06:55:54 djm Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -136,9 +136,10 @@ mac_setup(Mac *mac, char *name)
for (m = macs; m->name != NULL; m++) {
if (strcmp(name, m->name) != 0)
continue;
- if (mac != NULL)
+ if (mac != NULL) {
mac_setup_by_alg(mac, m);
- debug2("mac_setup: found %s", name);
+ debug2("mac_setup: setup %s", name);
+ }
return (0);
}
debug2("mac_setup: unknown %s", name);
@@ -149,7 +150,7 @@ int
mac_init(Mac *mac)
{
if (mac->key == NULL)
- fatal("mac_init: no key");
+ fatal("%s: no key", __func__);
switch (mac->type) {
case SSH_DIGEST:
if (mac->hmac_ctx == NULL ||
@@ -237,8 +238,6 @@ mac_valid(const char *names)
debug("bad mac %s [%s]", p, names);
free(maclist);
return (0);
- } else {
- debug3("mac ok: %s [%s]", p, names);
}
}
debug3("macs ok: [%s]", names);