2007-06-11 13:01:04 +01:00
|
|
|
/*
|
|
|
|
* Scyther : An automatic verifier for security protocols.
|
2012-04-24 12:56:51 +01:00
|
|
|
* Copyright (C) 2007-2012 Cas Cremers
|
2007-06-11 13:01:04 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*/
|
|
|
|
|
2004-08-27 12:52:43 +01:00
|
|
|
#ifndef LABEL
|
|
|
|
#define LABEL
|
|
|
|
|
|
|
|
#include "term.h"
|
2004-08-27 13:36:23 +01:00
|
|
|
#include "list.h"
|
|
|
|
#include "system.h"
|
2004-08-27 12:52:43 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Structure to store label information
|
|
|
|
*/
|
|
|
|
struct labelinfo
|
|
|
|
{
|
2004-11-16 12:07:55 +00:00
|
|
|
Term label;
|
2006-04-25 14:58:14 +01:00
|
|
|
int ignore;
|
2004-11-16 12:07:55 +00:00
|
|
|
Protocol protocol;
|
|
|
|
Term sendrole;
|
2012-04-25 08:53:07 +01:00
|
|
|
Term recvrole;
|
2004-08-27 12:52:43 +01:00
|
|
|
};
|
|
|
|
|
2004-11-16 12:07:55 +00:00
|
|
|
typedef struct labelinfo *Labelinfo;
|
2004-08-27 12:52:43 +01:00
|
|
|
|
2004-08-27 13:36:23 +01:00
|
|
|
Labelinfo label_create (const Term label, const Protocol protocol);
|
2004-08-27 12:52:43 +01:00
|
|
|
void label_destroy (Labelinfo linfo);
|
2004-08-27 13:36:23 +01:00
|
|
|
Labelinfo label_find (List labellist, const Term label);
|
2004-08-27 12:52:43 +01:00
|
|
|
|
|
|
|
#endif
|