Hi guys,

I'm trying to use KSM in SNMPv3, but I experienced some errors and I'm
wondering why.
I'm using a CentOS7 system and MIT Krb5, using:

./configure --with-security-modules="ksm" --with-cflags="-I
usr/include/krb5" \ --with-ldflags="-L usr/lib64 -lkrb5 -lk5crypto
-lcom_err"

I can aparently compile snmp with ksm, but when I try the "make" command
I'm experiencing the following errors

snmpksm.c: In function 'ksm_rgenerate_out_msg':
snmpksm.c:490:25: error: 'params' undeclared (first use in this function)
         colon = strrchr(params->session->peername, ':');
                         ^
snmpksm.c:490:25: note: each undeclared identifier is reported only once
for each function it appears in
snmpksm.c:690:13: error: 'krb5_enctype_array' undeclared (first use in this
function)
             krb5_enctype_array[subkey->enctype]->system->block_length;
             ^
snmpksm.c: In function 'ksm_process_in_msg':
snmpksm.c:1681:13: error: 'krb5_enctype_array' undeclared (first use in
this function)
             krb5_enctype_array[subkey->enctype]->system->block_length;
             ^
make[1]: *** [snmpksm.lo] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/net-snmp-5.7.2/snmplib'
make: *** [subdirs] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.2aIPJu (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.2aIPJu (%build)

Besides this errors, I'm wondering why the compiler keeps looking for old
MIT crypto even with Kerberos v5.

checking for security modules to use...  ksm usm
checking for krb5-config... /bin/krb5-config
checking for krb5... checking for krb5_init_context in -lkrb5... yes
yes
checking for heimdal... no
checking to see which crypto API we need to use... checking for
krb5_c_encrypt... yes
(cached) old MIT crypto API

How can I change this configuration?
Finally, I also wanna know if there are any new documentation for the ksm
in snmp besides README.krb5

Thanks for the help  =)
Matheus Alves.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to