Removing another fake nested function.

This commit is contained in:
Cas Cremers 2018-12-24 15:56:38 +01:00
parent 10732ae6d3
commit dc8c37aa59

View File

@ -2694,6 +2694,26 @@ arachneClaim ()
return false; return false;
} }
//! Helper for arachne
int
determine_encrypt_max (Protocol p, Role r, Roledef rd, int index)
{
int tlevel;
tlevel = term_encryption_level (rd->message);
#ifdef DEBUG
if (DEBUGL (3))
{
eprintf ("Encryption level %i found for term ", tlevel);
termPrint (rd->message);
eprintf ("\n");
}
#endif
if (tlevel > max_encryption_level)
max_encryption_level = tlevel;
return 1;
}
//! Main code for Arachne //! Main code for Arachne
/** /**
@ -2721,24 +2741,6 @@ arachne ()
return 1; return 1;
} }
int determine_encrypt_max (Protocol p, Role r, Roledef rd, int index)
{
int tlevel;
tlevel = term_encryption_level (rd->message);
#ifdef DEBUG
if (DEBUGL (3))
{
eprintf ("Encryption level %i found for term ", tlevel);
termPrint (rd->message);
eprintf ("\n");
}
#endif
if (tlevel > max_encryption_level)
max_encryption_level = tlevel;
return 1;
}
/* /*
* set up claim role(s) * set up claim role(s)
*/ */