p-cscf: Add plugin stub
This commit is contained in:
parent
319b031a8a
commit
12ac5fac1a
|
@ -228,6 +228,7 @@ ARG_DISBL_SET([attr], [disable strongswan.conf based configuration att
|
||||||
ARG_ENABL_SET([attr-sql], [enable SQL based configuration attribute plugin.])
|
ARG_ENABL_SET([attr-sql], [enable SQL based configuration attribute plugin.])
|
||||||
ARG_ENABL_SET([dhcp], [enable DHCP based attribute provider plugin.])
|
ARG_ENABL_SET([dhcp], [enable DHCP based attribute provider plugin.])
|
||||||
ARG_ENABL_SET([osx-attr], [enable OS X SystemConfiguration attribute handler.])
|
ARG_ENABL_SET([osx-attr], [enable OS X SystemConfiguration attribute handler.])
|
||||||
|
ARG_ENABL_SET([p-cscf], [enable plugin to request P-CSCF server addresses from an ePDG.])
|
||||||
ARG_DISBL_SET([resolve], [disable resolve DNS handler plugin.])
|
ARG_DISBL_SET([resolve], [disable resolve DNS handler plugin.])
|
||||||
ARG_ENABL_SET([unity], [enables Cisco Unity extension plugin.])
|
ARG_ENABL_SET([unity], [enables Cisco Unity extension plugin.])
|
||||||
# TNC modules/plugins
|
# TNC modules/plugins
|
||||||
|
@ -1396,6 +1397,7 @@ ADD_PLUGIN([medsrv], [c charon])
|
||||||
ADD_PLUGIN([medcli], [c charon])
|
ADD_PLUGIN([medcli], [c charon])
|
||||||
ADD_PLUGIN([dhcp], [c charon])
|
ADD_PLUGIN([dhcp], [c charon])
|
||||||
ADD_PLUGIN([osx-attr], [c charon cmd])
|
ADD_PLUGIN([osx-attr], [c charon cmd])
|
||||||
|
ADD_PLUGIN([p-cscf], [c charon cmd])
|
||||||
ADD_PLUGIN([android-dns], [c charon])
|
ADD_PLUGIN([android-dns], [c charon])
|
||||||
ADD_PLUGIN([android-log], [c charon])
|
ADD_PLUGIN([android-log], [c charon])
|
||||||
ADD_PLUGIN([ha], [c charon])
|
ADD_PLUGIN([ha], [c charon])
|
||||||
|
@ -1500,6 +1502,7 @@ AM_CONDITIONAL(USE_MEDSRV, test x$medsrv = xtrue)
|
||||||
AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue)
|
AM_CONDITIONAL(USE_MEDCLI, test x$medcli = xtrue)
|
||||||
AM_CONDITIONAL(USE_UCI, test x$uci = xtrue)
|
AM_CONDITIONAL(USE_UCI, test x$uci = xtrue)
|
||||||
AM_CONDITIONAL(USE_OSX_ATTR, test x$osx_attr = xtrue)
|
AM_CONDITIONAL(USE_OSX_ATTR, test x$osx_attr = xtrue)
|
||||||
|
AM_CONDITIONAL(USE_P_CSCF, test x$p_cscf = xtrue)
|
||||||
AM_CONDITIONAL(USE_ANDROID_DNS, test x$android_dns = xtrue)
|
AM_CONDITIONAL(USE_ANDROID_DNS, test x$android_dns = xtrue)
|
||||||
AM_CONDITIONAL(USE_ANDROID_LOG, test x$android_log = xtrue)
|
AM_CONDITIONAL(USE_ANDROID_LOG, test x$android_log = xtrue)
|
||||||
AM_CONDITIONAL(USE_MAEMO, test x$maemo = xtrue)
|
AM_CONDITIONAL(USE_MAEMO, test x$maemo = xtrue)
|
||||||
|
@ -1839,6 +1842,7 @@ AC_CONFIG_FILES([
|
||||||
src/libcharon/plugins/coupling/Makefile
|
src/libcharon/plugins/coupling/Makefile
|
||||||
src/libcharon/plugins/radattr/Makefile
|
src/libcharon/plugins/radattr/Makefile
|
||||||
src/libcharon/plugins/osx_attr/Makefile
|
src/libcharon/plugins/osx_attr/Makefile
|
||||||
|
src/libcharon/plugins/p_cscf/Makefile
|
||||||
src/libcharon/plugins/android_dns/Makefile
|
src/libcharon/plugins/android_dns/Makefile
|
||||||
src/libcharon/plugins/android_log/Makefile
|
src/libcharon/plugins/android_log/Makefile
|
||||||
src/libcharon/plugins/maemo/Makefile
|
src/libcharon/plugins/maemo/Makefile
|
||||||
|
|
|
@ -156,6 +156,8 @@ endif
|
||||||
|
|
||||||
LOCAL_SRC_FILES += $(call add_plugin, attr)
|
LOCAL_SRC_FILES += $(call add_plugin, attr)
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES += $(call add_plugin, p-cscf)
|
||||||
|
|
||||||
LOCAL_SRC_FILES += $(call add_plugin, eap-aka)
|
LOCAL_SRC_FILES += $(call add_plugin, eap-aka)
|
||||||
|
|
||||||
LOCAL_SRC_FILES += $(call add_plugin, eap-aka-3gpp2)
|
LOCAL_SRC_FILES += $(call add_plugin, eap-aka-3gpp2)
|
||||||
|
|
|
@ -489,6 +489,13 @@ if MONOLITHIC
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if USE_P_CSCF
|
||||||
|
SUBDIRS += plugins/p_cscf
|
||||||
|
if MONOLITHIC
|
||||||
|
libcharon_la_LIBADD += plugins/p_cscf/libstrongswan-p-cscf.la
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
if USE_ANDROID_DNS
|
if USE_ANDROID_DNS
|
||||||
SUBDIRS += plugins/android_dns
|
SUBDIRS += plugins/android_dns
|
||||||
if MONOLITHIC
|
if MONOLITHIC
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
AM_CPPFLAGS = \
|
||||||
|
-I$(top_srcdir)/src/libstrongswan \
|
||||||
|
-I$(top_srcdir)/src/libhydra \
|
||||||
|
-I$(top_srcdir)/src/libcharon
|
||||||
|
|
||||||
|
AM_CFLAGS = \
|
||||||
|
$(PLUGIN_CFLAGS)
|
||||||
|
|
||||||
|
if MONOLITHIC
|
||||||
|
noinst_LTLIBRARIES = libstrongswan-p-cscf.la
|
||||||
|
else
|
||||||
|
plugin_LTLIBRARIES = libstrongswan-p-cscf.la
|
||||||
|
endif
|
||||||
|
|
||||||
|
libstrongswan_p_cscf_la_SOURCES = \
|
||||||
|
p_cscf_plugin.c p_cscf_plugin.h
|
||||||
|
|
||||||
|
libstrongswan_p_cscf_la_LDFLAGS = -module -avoid-version
|
|
@ -0,0 +1,62 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Tobias Brunner
|
||||||
|
* Hochschule fuer Technik Rapperswil
|
||||||
|
*
|
||||||
|
* 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. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "p_cscf_plugin.h"
|
||||||
|
|
||||||
|
#include <daemon.h>
|
||||||
|
|
||||||
|
typedef struct private_p_cscf_plugin_t private_p_cscf_plugin_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Private data
|
||||||
|
*/
|
||||||
|
struct private_p_cscf_plugin_t {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Public interface
|
||||||
|
*/
|
||||||
|
p_cscf_plugin_t public;
|
||||||
|
};
|
||||||
|
|
||||||
|
METHOD(plugin_t, get_name, char*,
|
||||||
|
private_p_cscf_plugin_t *this)
|
||||||
|
{
|
||||||
|
return "p-cscf";
|
||||||
|
}
|
||||||
|
|
||||||
|
METHOD(plugin_t, destroy, void,
|
||||||
|
private_p_cscf_plugin_t *this)
|
||||||
|
{
|
||||||
|
free(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* See header
|
||||||
|
*/
|
||||||
|
plugin_t *p_cscf_plugin_create()
|
||||||
|
{
|
||||||
|
private_p_cscf_plugin_t *this;
|
||||||
|
|
||||||
|
INIT(this,
|
||||||
|
.public = {
|
||||||
|
.plugin = {
|
||||||
|
.get_name = _get_name,
|
||||||
|
.destroy = _destroy,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
|
return &this->public.plugin;
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2016 Tobias Brunner
|
||||||
|
* Hochschule fuer Technik Rapperswil
|
||||||
|
*
|
||||||
|
* 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. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @defgroup p_cscf p_cscf
|
||||||
|
* @ingroup cplugins
|
||||||
|
*
|
||||||
|
* @defgroup p_cscf_plugin p_cscf_plugin
|
||||||
|
* @{ @ingroup p_cscf
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef P_CSCF_PLUGIN_H_
|
||||||
|
#define P_CSCF_PLUGIN_H_
|
||||||
|
|
||||||
|
#include <plugins/plugin.h>
|
||||||
|
|
||||||
|
typedef struct p_cscf_plugin_t p_cscf_plugin_t;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Plugin that requests P-CSCF server addresses from an ePDG as specified
|
||||||
|
* in RFC 7651.
|
||||||
|
*/
|
||||||
|
struct p_cscf_plugin_t {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements plugin interface.
|
||||||
|
*/
|
||||||
|
plugin_t plugin;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /** P_CSCF_PLUGIN_H_ @}*/
|
Loading…
Reference in New Issue