summaryrefslogtreecommitdiff
path: root/cleopatre/application/spidnetsnmp/testing/tests/T111agentxset
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/application/spidnetsnmp/testing/tests/T111agentxset')
-rw-r--r--cleopatre/application/spidnetsnmp/testing/tests/T111agentxset76
1 files changed, 0 insertions, 76 deletions
diff --git a/cleopatre/application/spidnetsnmp/testing/tests/T111agentxset b/cleopatre/application/spidnetsnmp/testing/tests/T111agentxset
deleted file mode 100644
index 2b89dfda7b..0000000000
--- a/cleopatre/application/spidnetsnmp/testing/tests/T111agentxset
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-
-. ../eval_tools.sh
-
-HEADER AgentX SET support
-
-SKIPIFNOT USING_AGENTX_MASTER_MODULE
-SKIPIFNOT USING_AGENTX_SUBAGENT_MODULE
-SKIPIFNOT USING_MIBII_SYSTEM_MIB_MODULE
-
-#
-# Begin test
-#
-
-# standard V3 configuration for initial user
-. ./Sv3config
-
-# Start the agent without initializing the system mib.
-if [ "x$SNMP_TRANSPORT_SPEC" = "xunix" ];then
-ORIG_AGENT_FLAGS="$AGENT_FLAGS -x $SNMP_TMPDIR/agentx_socket"
-else
-ORIG_AGENT_FLAGS="$AGENT_FLAGS -x tcp:${SNMP_TEST_DEST}${SNMP_AGENTX_PORT}"
-fi
-AGENT_FLAGS="$ORIG_AGENT_FLAGS -I -system_mib -DAgentX"
-STARTAGENT
-
-# test to see that the current agent doesn't support the system mib
-CAPTURE "snmpget -On -t 3 $SNMP_FLAGS $AUTHTESTARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT .1.3.6.1.2.1.1.4.0"
-
-CHECK ".1.3.6.1.2.1.1.4.0 = No Such Object"
-
-if test "$snmp_last_test_result" = 1; then
- # test the AgentX subagent by first running it...
-
- SNMP_SNMPD_PID_FILE_ORIG=$SNMP_SNMPD_PID_FILE
- SNMP_SNMPD_LOG_FILE_ORIG=$SNMP_SNMPD_LOG_FILE
- SNMP_SNMPD_PID_FILE=$SNMP_SNMPD_PID_FILE.num2
- SNMP_SNMPD_LOG_FILE=$SNMP_SNMPD_LOG_FILE.num2
- AGENT_FLAGS="$ORIG_AGENT_FLAGS -X -I system_mib"
- SNMP_CONFIG_FILE="$SNMP_TMPDIR/bogus.conf"
- echo "psyscontact testcontact" >> $SNMP_CONFIG_FILE
- STARTAGENT
-
- # test to see that the agent now supports the system mib
- CAPTURE "snmpget -On $SNMP_FLAGS -t 5 $AUTHTESTARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT sysContact.0"
-
- CHECK ".1.3.6.1.2.1.1.4.0 = STRING: testcontact"
-
- if test "$snmp_last_test_result" = 1; then
-
- # test to see that the agent now supports setting the system mib
- CAPTURE "snmpset -On $SNMP_FLAGS -t 5 $AUTHTESTARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT sysContact.0 s newtestcontact"
-
- CHECK ".1.3.6.1.2.1.1.4.0 = STRING: newtestcontact"
-
- if test "$snmp_last_test_result" = 1; then
-
- # test to see that the agent now supports the system mib
- CAPTURE "snmpget -On $SNMP_FLAGS -t 5 $AUTHTESTARGS $SNMP_TRANSPORT_SPEC:$SNMP_TEST_DEST$SNMP_SNMPD_PORT sysContact.0"
-
- CHECK ".1.3.6.1.2.1.1.4.0 = STRING: newtestcontact"
- fi
- fi
-
- # stop the subagent
- STOPAGENT
-
- SNMP_SNMPD_PID_FILE=$SNMP_SNMPD_PID_FILE_ORIG
- SNMP_SNMPD_LOG_FILE=$SNMP_SNMPD_LOG_FILE_ORIG
-fi
-
-# stop the master agent
-STOPAGENT
-
-# all done (whew)
-FINISHED
v class='head'>diff --git a/cesar/cp/secu/stub/src/secu.c b/cesar/cp/secu/stub/src/secu.c
index 27b4bcf485..2f82b76689 100644
--- a/cesar/cp/secu/stub/src/secu.c
+++ b/cesar/cp/secu/stub/src/secu.c
@@ -24,7 +24,8 @@ cp_secu_protocol_check (const cp_secu_protocol_run_t *prun,
const cp_secu_protocol_run_t *prun_recv) __attribute__((weak));
void
-cp_secu_protocol_next (cp_secu_protocol_run_t *prun, bool last) __attribute__((weak));
+cp_secu_protocol_next (cp_secu_protocol_run_t *prun, lib_rnd_t *rnd,
+ bool last) __attribute__((weak));
void
cp_secu_generate_key (cp_t*ctx, uint num, uint nb_iteration, cp_key_t *output) __attribute__((weak));
@@ -44,7 +45,8 @@ cp_secu_protocol_check (const cp_secu_protocol_run_t *pr