Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jan 2015 00:12:48 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r276677 - stable/10/contrib/bsnmp/lib
Message-ID:  <201501050012.t050Cm2l045488@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Mon Jan  5 00:12:47 2015
New Revision: 276677
URL: https://svnweb.freebsd.org/changeset/base/276677

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

Modified:
  stable/10/contrib/bsnmp/lib/snmpcrypto.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/bsnmp/lib/snmpcrypto.c
==============================================================================
--- stable/10/contrib/bsnmp/lib/snmpcrypto.c	Mon Jan  5 00:11:20 2015	(r276676)
+++ stable/10/contrib/bsnmp/lib/snmpcrypto.c	Mon Jan  5 00:12:47 2015	(r276677)
@@ -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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501050012.t050Cm2l045488>