|
|
|
@ -552,6 +552,7 @@ tstylesheet {
|
|
|
|
|
status = PEP_«yml:ucase(@name)»_CANNOT_ENCRYPT;
|
|
|
|
|
goto the_end;
|
|
|
|
|
}
|
|
|
|
|
add_opt_field(m, "pEp-auto-consume", "yes");
|
|
|
|
|
free_message(_m);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
@ -729,6 +730,7 @@ tstylesheet {
|
|
|
|
|
status = PEP_«yml:ucase(@name)»_CANNOT_ENCRYPT;
|
|
|
|
|
goto the_end;
|
|
|
|
|
}
|
|
|
|
|
add_opt_field(m, "pEp-auto-consume", "yes");
|
|
|
|
|
free_message(_m);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
@ -752,6 +754,7 @@ tstylesheet {
|
|
|
|
|
status = PEP_«yml:ucase(@name)»_CANNOT_ENCRYPT;
|
|
|
|
|
goto the_end;
|
|
|
|
|
}
|
|
|
|
|
add_opt_field(m, "pEp-auto-consume", "yes");
|
|
|
|
|
free_message(_m);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1046,8 +1049,10 @@ tstylesheet {
|
|
|
|
|
|
|
|
|
|
// state machine
|
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
const char *«@name»_state_name(int state);
|
|
|
|
|
const char *«@name»_event_name(int event);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// the state machine function is returning the next state in case of a
|
|
|
|
|
// transition or None for staying
|
|
|
|
@ -1073,6 +1078,9 @@ tstylesheet {
|
|
|
|
|
#include "«@name»_fsm.h"
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
|
#ifdef NDEBUG
|
|
|
|
|
static
|
|
|
|
|
#endif
|
|
|
|
|
const char *«@name»_state_name(int state)
|
|
|
|
|
{
|
|
|
|
|
switch (state) {
|
|
|
|
@ -1093,6 +1101,9 @@ tstylesheet {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef NDEBUG
|
|
|
|
|
static
|
|
|
|
|
#endif
|
|
|
|
|
const char *«@name»_event_name(int event)
|
|
|
|
|
{
|
|
|
|
|
switch (event) {
|
|
|
|
@ -1158,7 +1169,7 @@ tstylesheet {
|
|
|
|
|
switch (state) {
|
|
|
|
|
`` apply "state", 2, mode=fsm
|
|
|
|
|
default:
|
|
|
|
|
«@name»_ERR_LOG_INT("invalid state", state);
|
|
|
|
|
«@name»_ERR_LOG("invalid state", «@name»_state_name(state));
|
|
|
|
|
return invalid_state;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|