2015-12-04 15:47:52 +01:00
|
|
|
/**
|
2016-09-11 22:20:15 +02:00
|
|
|
* Author......: See docs/credits.txt
|
2015-12-04 15:47:52 +01:00
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2016-09-06 18:44:05 +02:00
|
|
|
#ifndef _RP_CPU_H
|
|
|
|
#define _RP_CPU_H
|
2016-09-05 21:47:26 +02:00
|
|
|
|
2016-09-06 15:28:56 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
2016-09-24 11:08:35 +02:00
|
|
|
#define RULE_RC_SYNTAX_ERROR -1
|
|
|
|
#define RULE_RC_REJECT_ERROR -2
|
2016-09-06 15:28:56 +02:00
|
|
|
|
2017-11-13 21:05:40 +01:00
|
|
|
int _old_apply_rule (const char *rule, int rule_len, char in[RP_PASSWORD_SIZE], int in_len, char out[RP_PASSWORD_SIZE]);
|
2016-09-06 18:44:05 +02:00
|
|
|
|
2016-09-08 16:32:24 +02:00
|
|
|
int run_rule_engine (const int rule_len, const char *rule_buf);
|
|
|
|
|
2016-09-06 18:44:05 +02:00
|
|
|
#endif // _RP_CPU_H
|