Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

common.h

Go to the documentation of this file.
00001 /*
00002  *  common.h - common includes and definitions
00003  *  
00004  *  EAP-IKEv2
00005  *
00006  *  This library implements ideas of draft-tschofenig-eap-ikev2-10.txt
00007  *  Internet-Draft. Version of the document that this library corresponds
00008  *  to you can find at
00009  *  http://tools.ietf.org/wg/eap/draft-tschofenig-eap-ikev2-10.txt.
00010  *
00011  *  This file is part of libeap-ikev2.
00012  *
00013  *  libeap-ikev2 is free software; you can redistribute it and/or modify
00014  *  it under the terms of the GNU General Public License as published by
00015  *  the Free Software Foundation; either version 2 of the License, or
00016  *  (at your option) any later version.
00017  *
00018  *  libeap-ikev2 is distributed in the hope that it will be useful,
00019  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  *  GNU General Public License for more details.
00022  *
00023  *  You should have received a copy of the GNU General Public License
00024  *  along with libeap-ikev2; if not, write to the Free Software
00025  *
00026  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027  *
00028  *  Copyright (C) 2005-2006 Krzysztof Rzecki <krzysztof.rzecki@ccns.pl>      
00029  *  Copyright (C) 2005-2006 Rafal Mijal <rafal.mijal@ccns.pl>                
00030  *  Copyright (C) 2005-2006 Piotr Marnik <piotr.marnik@ccns.pl>              
00031  *  Copyright (C) 2005-2006 Pawel Matejski <pawel.matejski@ccns.pl>          
00032  *
00033  */
00034 
00035 #ifndef __COMMON_H
00036 #define __COMMON_H
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 #include "config.h"
00043 
00044 #ifdef HAVE_STDINT_H
00045 #include <stdint.h>
00046 #endif //HAVE_STDINT_H
00047 
00052 
00053 // Error codes
00054 #define IKEv2_RET_OK              0
00055 #define IKEv2_RET_ERRMEMALLOC     1
00056 #define IKEv2_RET_ERRWRONGSPI     2
00057 #define IKEv2_RET_ERRPARAMETERS   3
00058 #define IKEv2_RET_ERRNOSESSION    4
00059 #define IKEv2_RET_FAILED          5
00060 #define IKEv2_RET_ERRCONFIGFILE   6
00061 
00062 #define EAP_IKEv2_KEY_LEN 256
00063 
00064 typedef enum { false = 0, true = -1 } bool;
00065 
00066 #include <openssl/bn.h>
00067 
00068 #include "logging.h"
00069 #include "utils.h"
00070 
00071 
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075 
00076 #endif // __COMMON_H

Project hosted by: SourceForge.net Logo