-.\" $OpenBSD: snmp.1,v 1.17 2021/03/23 22:07:36 martijn Exp $
+.\" $OpenBSD: snmp.1,v 1.18 2021/06/20 20:02:14 martijn 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: March 23 2021 $
+.Dd $Mdocdate: June 20 2021 $
.Dt SNMP 1
.Os
.Sh NAME
or
.Cm SHA-512 .
This option defaults to
-.Cm MD5 .
+.Cm SHA-256 .
This option is only used by
.Fl v Cm 3 .
.It Fl C Ar appopt
.Cm DES
and
.Cm AES .
+This option defaults to
+.Cm AES .
This option is only used by
.Fl v Cm 3 .
.It Fl Z Ar boots , Ns Ar time
-/* $OpenBSD: snmpc.c,v 1.33 2021/03/23 22:07:36 martijn Exp $ */
+/* $OpenBSD: snmpc.c,v 1.34 2021/06/20 20:02:14 martijn Exp $ */
/*
* Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
err(1, "usm_init");
if (seclevel & SNMP_MSGFLAG_AUTH) {
if (md == NULL)
- md = EVP_md5();
+ md = EVP_sha256();
if (authkey == NULL)
errx(1, "No authKey or authPassword specified");
if (usm_setauth(sec, md, authkey, authkeylen,
}
if (seclevel & SNMP_MSGFLAG_PRIV) {
if (cipher == NULL)
- cipher = EVP_des_cbc();
+ cipher = EVP_aes_128_cfb128();
if (privkey == NULL)
errx(1, "No privKey or privPassword specified");
if (usm_setpriv(sec, cipher, privkey, privkeylen,