5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef __CONNMAN_VPND_PLUGIN_IPSEC_H
21 #define __CONNMAN_VPND_PLUGIN_IPSEC_H
23 #define IPSEC_AUTH_PSK "PSK"
24 #define IPSEC_AUTH_RSA "RSA"
25 #define IPSEC_AUTH_XAUTH "XAUTH"
27 #define VICI_SHARED_TYPE_PSK "IKE"
28 #define VICI_SHARED_TYPE_XAUTH "xauth"
30 #define IPSEC_ERROR_CHECK_GOTO(err, target, fmt, arg...) do { \
32 connman_error(fmt, ## arg); \
37 #define IPSEC_ERROR_CHECK_RETURN(err, fmt, arg...) do { \
39 connman_error(fmt, ## arg); \
44 #define IPSEC_ERROR_CHECK_RETURN_VAL(err, ret, fmt, arg...) do { \
46 connman_error(fmt, ## arg); \
51 #endif /* __CONNMAN_VPND_PLUGIN_IPSEC_H */