<div dir="ltr">Indeed, it seems to be exactly what I am looking for.<div><br></div><div>However, when I'm trying to compile the example program : </div><div><br></div><div><pre class="" style="border:1px solid rgb(196,207,229);padding:4px 6px;margin:4px 8px 4px 2px;overflow:auto;word-wrap:break-word;line-height:18.375px;font-family:monospace,fixed;font-size:14.6999998092651px;color:rgb(0,0,0);background-color:rgb(251,252,253)">#include <stdio.h>
#include <errno.h>
#include <string.h>

#include <libvici.h>

int main(int argc, char *argv[])
{
    vici_conn_t *conn;
    int ret = 0;

    vici_init();
    conn = vici_connect(NULL);
    if (conn)
    {
        // do stuff 
        vici_disconnect(conn);
    }
    else
    {
        ret = errno;
        fprintf(stderr, "connecting failed: %s\n", strerror(errno));
    }
    vici_deinit();
    return ret;
}</pre></div><div><br></div><div>I have an error : "fatal error: libvici.h: unknown file". Am I supposed to edit my own Makefile to compile it ?</div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-20 15:05 GMT+02:00 Tobias Brunner <span dir="ltr"><<a href="mailto:tobias@strongswan.org" target="_blank">tobias@strongswan.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jacques,<br>
<span class=""><br>
> I wanted to know if there is a way to open, close connection with out<br>
> using the command "ipsec up connection", "ipsec down connection" but by<br>
> using an API.<br>
<br>
</span>Please have a look at the VICI interface [1] and its C API.<br>
<br>
Regards,<br>
Tobias<br>
<br>
[1] <a href="https://wiki.strongswan.org/projects/strongswan/wiki/Vici" rel="noreferrer" target="_blank">https://wiki.strongswan.org/projects/strongswan/wiki/Vici</a><br>
<br>
</blockquote></div><br></div>