-.\" $OpenBSD: snmp.1,v 1.18 2021/06/20 20:02:14 martijn Exp $
+.\" $OpenBSD: snmp.1,v 1.19 2021/08/08 13:41:26 sthen Exp $
.\"
.\" Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: June 20 2021 $
+.Dd $Mdocdate: August 8 2021 $
.Dt SNMP 1
.Os
.Sh NAME
or
.Cm SHA-512 .
This option defaults to
-.Cm SHA-256 .
+.Cm SHA .
This option is only used by
.Fl v Cm 3 .
.It Fl C Ar appopt
-/* $OpenBSD: snmpc.c,v 1.34 2021/06/20 20:02:14 martijn Exp $ */
+/* $OpenBSD: snmpc.c,v 1.35 2021/08/08 13:41:26 sthen Exp $ */
/*
* Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
err(1, "usm_init");
if (seclevel & SNMP_MSGFLAG_AUTH) {
if (md == NULL)
- md = EVP_sha256();
+ md = EVP_sha1();
if (authkey == NULL)
errx(1, "No authKey or authPassword specified");
if (usm_setauth(sec, md, authkey, authkeylen,
-.\" $OpenBSD: snmpd.conf.5,v 1.51 2021/08/08 13:28:06 sthen Exp $
+.\" $OpenBSD: snmpd.conf.5,v 1.52 2021/08/08 13:41:26 sthen Exp $
.\"
.\" Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
.\"
or
.Ic hmac-sha512 .
If omitted the default is
-.Ic hmac-sha256 .
+.Ic hmac-sha1 .
.Pp
With
.Ic enckey
.Pp
The next example will enforce SNMPv3 with authenticated and encrypted
communication and the user-based security model.
-The configuration defines two users,
-the first one is using the
-.Ic aes
-encryption algorithm and the second one the default
-.Ic des
-algorithm.
+The configuration defines several users using varying encryption and
+authentication algorithms.
.Bd -literal -offset indent
seclevel enc
-user "hans" authkey "password123" enc aes enckey "321drowssap"
-user "sophie" authkey "password456" enc des enckey "654drowssap"
+user "mgmt" auth hmac-sha256 authkey "password123" enc aes enckey "321drowssap"
+user "hans" auth hmac-sha1 authkey "password456" enc aes enckey "654drowssap"
+user "sophie" auth hmac-md5 authkey "password789" enc des enckey "987drowssap"
.Ed
.Sh SEE ALSO
.Xr snmp 1 ,
-/* $OpenBSD: snmpd.h,v 1.97 2021/06/20 19:59:42 martijn Exp $ */
+/* $OpenBSD: snmpd.h,v 1.98 2021/08/08 13:41:26 sthen Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
AUTH_SHA512 /* usmHMAC384SHA512AuthProtocol. RFC7860 */
};
-#define AUTH_DEFAULT AUTH_SHA256 /* Default digest */
+#define AUTH_DEFAULT AUTH_SHA1 /* Default digest */
enum usmpriv {
PRIV_NONE = 0,