Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | child-cfg: Use flags for boolean options | Tobias Brunner | 2017-05-23 | 1 | -1/+1 |
| | | | | Makes it potentially easier to add new flags. | ||||
* | Use standard unsigned integer types | Andreas Steffen | 2016-03-24 | 1 | -4/+4 |
| | |||||
* | updown: Get value for PLUTO_MARK_{IN,OUT} from CHILD_SA | Shota Fukumori | 2016-03-23 | 1 | -2/+2 |
| | | | | | | | Or the invoked script will get a broken value when `mark=%unique` is used in a configuration. Closes strongswan/strongswan#37. | ||||
* | Support of IP address ranges in traffic selectors | Andreas Steffen | 2016-03-10 | 1 | -6/+10 |
| | |||||
* | Set PLUTO port variables to 0 in the case of no port restrictions | Andreas Steffen | 2016-03-04 | 1 | -1/+1 |
| | |||||
* | Port range support in updown script | Andreas Steffen | 2016-03-04 | 1 | -13/+37 |
| | |||||
* | libhydra: Remove empty unused library | Tobias Brunner | 2016-03-03 | 1 | -1/+0 |
| | |||||
* | libhydra: Move kernel interface to libcharon | Tobias Brunner | 2016-03-03 | 1 | -3/+1 |
| | | | | This moves hydra->kernel_interface to charon->kernel. | ||||
* | updown: Pass virtual IPs assigned to a peer to the updown script | Tobias Brunner | 2015-08-06 | 1 | -7/+11 |
| | | | | | | Previously only received virtual IPs were available. References #1008. | ||||
* | attribute-handler: Pass full IKE_SA to handler backends | Martin Willi | 2015-02-20 | 1 | -34/+23 |
| | |||||
* | attributes: Move the configuration attributes framework to libcharon | Martin Willi | 2015-02-20 | 1 | -5/+4 |
| | |||||
* | updown: Explicitly pass caller PATH to updown script | Martin Willi | 2014-10-22 | 1 | -0/+1 |
| | | | | | | | | | When invoking /bin/sh, its default PATH is used. On some systems, that does not include the PATH where the ipsec script is installed, as charon is invoked with a custom PATH. Explicitly setting the PATH of charon should fix this case, properly invoking the (default) updown script. Fixes #745. | ||||
* | updown: Use process abstraction to invoke updown script | Martin Willi | 2014-10-06 | 1 | -246/+215 |
| | |||||
* | updown: Force subnet address to be numeric | Tobias Brunner | 2014-06-25 | 1 | -2/+2 |
| | |||||
* | plugins: Don't link with -rdynamic on Windows | Martin Willi | 2014-06-04 | 1 | -1/+1 |
| | |||||
* | libcharon: Use lib->ns instead of charon->name | Tobias Brunner | 2014-02-12 | 1 | -1/+1 |
| | |||||
* | updown: Return an empty DNS server enumerator if no IKE_SA available | Martin Willi | 2014-02-06 | 1 | -1/+1 |
| | | | | | The one existing caller does not handle a NULL return and always expects an enumerator; and returning FALSE does not make sense anyway. | ||||
* | updown: Increase buffer size for script and environment variables | Tobias Brunner | 2014-01-23 | 1 | -1/+1 |
| | |||||
* | updown: Add PLUTO_IPCOMP to indicate if IPComp was negotiated | Tobias Brunner | 2014-01-23 | 1 | -1/+7 |
| | |||||
* | updown: fix segfault when interface name can't be resolved | Ansis Atteka | 2013-10-30 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The child_updown() function sets up environment variables to the updown script. Sometimes call to hydra->kernel_interface->get_interface() could fail and iface variable could be left uninitialized. This patch fixes this issue by passing "unknown" as interface name. Here is the stacktrace: 0 0x00007fa90791f445 in raise () from /lib/x86_64-linux-gnu/libc.so.6 1 0x00007fa907922bab in abort () from /lib/x86_64-linux-gnu/libc.so.6 2 0x0000000000401ed7 in segv_handler (signal=11) at charon.c:183 3 <signal handler called> 4 0x00007fa90793221f in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6 5 0x00007fa9079f0580 in __vsnprintf_chk () from /lib/x86_64-linux-gnu/libc.so.6 6 0x00007fa9079f04c8 in __snprintf_chk () from /lib/x86_64-linux-gnu/libc.so.6 7 0x00007fa8f9b95b86 in snprintf ( __fmt=0x7fa8f9b961b8 "2>&1 PLUTO_VERSION='1.1' PLUTO_VERB='%s%s%s' PLUTO_CONNECTION='%s' PLUTO_INTERFACE='%s' PLUTO_REQID='%u' PLUTO_ME='%H' PLUTO_MY_ID='%Y' PLUTO_MY_CLIENT='%H/%u' PLUTO_MY_PORT='%u' PLUTO_MY_PROTOCOL='%u"..., __n=1024, __s=0x7fa8f7923440 "2>&1 PLUTO_VERSION='1.1' PLUTO_VERB='up-host' PLUTO_CONNECTION='remote-40.0.0.40' PLUTO_INTERFACE='\367\250\177") at /usr/include/x86_64-linux-gnu/bits/stdio2.h:65 8 child_updown (this=0x8486b0, ike_sa=0x7fa8e4005f80, child_sa=0x7fa8d4008290, up=true) at updown_listener.c:308 9 0x00007fa907ecc11c in ?? () from /usr/lib/strongswan/libcharon.so.0 10 0x00007fa907ef89bf in ?? () from /usr/lib/strongswan/libcharon.so.0 11 0x00007fa907ef2fc8 in ?? () from /usr/lib/strongswan/libcharon.so.0 12 0x00007fa907ee84ff in ?? () from /usr/lib/strongswan/libcharon.so.0 13 0x00007fa907ee3067 in ?? () from /usr/lib/strongswan/libcharon.so.0 14 0x00007fa90835e8fb in ?? () from /usr/lib/strongswan/libstrongswan.so.0 15 0x00007fa908360d30 in ?? () from /usr/lib/strongswan/libstrongswan.so.0 16 0x00007fa907cade9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0 17 0x00007fa9079db4bd in clone () from /lib/x86_64-linux-gnu/libc.so.6 18 0x0000000000000000 in ?? () Signed-Off-By: Ansis Atteka <aatteka@nicira.com> | ||||
* | updown: Pass ICMP[v6] message type and code to updown script | Tobias Brunner | 2013-10-17 | 1 | -2/+23 |
| | | | | The type is passed in $PLUTO_MY_PORT and the code in $PLUTO_PEER_PORT. | ||||
* | updown: Add a PLUTO_PROTO variable set to 'ah' or 'esp' | Martin Willi | 2013-10-11 | 1 | -0/+2 |
| | |||||
* | updown: remove description of unsupported PLUTO_ variables | Martin Willi | 2013-08-08 | 1 | -1/+0 |
| | | | | These have been set by pluto, but are not by charons updown plugin. | ||||
* | automake: replace INCLUDES by AM_CPPFLAGS | Martin Willi | 2013-07-18 | 1 | -3/+5 |
| | | | | | | INCLUDES are now deprecated and throw warnings when using automake 1.13. We now also differentiate AM_CPPFLAGS and AM_CFLAGS, where includes and defines are passed to AM_CPPFLAGS only. | ||||
* | updown: Use plugin features to register listener and attribute handler | Tobias Brunner | 2013-06-11 | 1 | -20/+44 |
| | |||||
* | updown: pass IKE_SA unique ID in PLUTO_UNIQUEID | Emanuil Hristov | 2013-05-16 | 1 | -1/+2 |
| | |||||
* | Pass PLUTO_XAUTH_ID to updown script | Martin Willi | 2012-11-16 | 1 | -1/+21 |
| | |||||
* | Moved data structures to new collections subfolder | Tobias Brunner | 2012-10-24 | 1 | -1/+1 |
| | |||||
* | Make it easy to check if an address is locally usable via changed ↵ | Tobias Brunner | 2012-09-21 | 1 | -3/+2 |
| | | | | get_interface() method | ||||
* | Support multiple virtual IPs on peer_cfg and ike_sa classes | Martin Willi | 2012-08-30 | 1 | -16/+42 |
| | |||||
* | Add a DNS attribute handler to updown, passing servers to updown script | Martin Willi | 2012-08-21 | 6 | -4/+377 |
| | |||||
* | correctly destroy the hosts | Andreas Steffen | 2011-06-03 | 1 | -2/+2 |
| | |||||
* | fixed subnet to string conversion by using ts_to_subnet() | Andreas Steffen | 2011-06-03 | 1 | -35/+7 |
| | |||||
* | Added a (not yet implemented) plugin_t method to reload plugin configuration | Martin Willi | 2011-04-15 | 1 | -0/+1 |
| | |||||
* | Added a get_name() function to plugin_t, create_plugin_enumerator enumerates ↵ | Martin Willi | 2011-04-15 | 1 | -0/+7 |
| | | | | over plugin_t | ||||
* | Migrated remaining plugin_t implementations to INIT/METHOD macros | Martin Willi | 2011-04-15 | 1 | -7/+11 |
| | |||||
* | Refer to kernel interface via hydra and not charon. | Tobias Brunner | 2010-09-02 | 1 | -2/+3 |
| | |||||
* | in a ESP_IN_UDP situation make UDP port available in the updown script | Andreas Steffen | 2010-07-17 | 1 | -1/+23 |
| | |||||
* | make xfrm marks available in the updown scripts | Andreas Steffen | 2010-07-17 | 1 | -1/+44 |
| | |||||
* | Compiler warning fixed. | Tobias Brunner | 2010-06-28 | 1 | -1/+3 |
| | |||||
* | Respect line with in Makefile.am's, other cosmetics | Martin Willi | 2010-03-25 | 1 | -1/+2 |
| | |||||
* | Changed all usages of lib->attributes to hydra->attributes. | Tobias Brunner | 2010-03-24 | 1 | -1/+1 |
| | |||||
* | Convert charon into libcharon. | Tobias Brunner | 2010-03-19 | 1 | -1/+1 |
| | |||||
* | Moving charon to libcharon. | Tobias Brunner | 2010-03-19 | 5 | -0/+464 |