svn commit: r276319 - head/contrib/bsnmp/lib

Garrett Cooper ngie at FreeBSD.org
Sat Dec 27 20:58:02 UTC 2014


Author: ngie
Date: Sat Dec 27 20:58:01 2014
New Revision: 276319
URL: https://svnweb.freebsd.org/changeset/base/276319

Log:
  Fix the function signatures when MK_CRYPT == no for snmp_get_local_keys and
  snmp_passwd_to_keys
  
  MFC after: 1 week
  Reported by: Beeblebrox <zaphod at berentweb.com>

Modified:
  head/contrib/bsnmp/lib/snmpcrypto.c

Modified: head/contrib/bsnmp/lib/snmpcrypto.c
==============================================================================
--- head/contrib/bsnmp/lib/snmpcrypto.c	Sat Dec 27 20:48:36 2014	(r276318)
+++ head/contrib/bsnmp/lib/snmpcrypto.c	Sat Dec 27 20:58:01 2014	(r276319)
@@ -366,7 +366,7 @@ snmp_pdu_decrypt(const struct snmp_pdu *
 	return (SNMP_CODE_OK);
 }
 
-int
+enum snmp_code
 snmp_passwd_to_keys(struct snmp_user *user, char *passwd __unused)
 {
 	if (user->auth_proto == SNMP_AUTH_NOAUTH &&
@@ -378,7 +378,7 @@ snmp_passwd_to_keys(struct snmp_user *us
 	return (SNMP_CODE_FAILED);
 }
 
-int
+enum snmp_code
 snmp_get_local_keys(struct snmp_user *user, uint8_t *eid __unused,
     uint32_t elen __unused)
 {


More information about the svn-src-head mailing list