<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you for your email. And is there any way that I can help with developing raw json API functionalities?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
And also, where can I find the man page for libreswan ipsec command?<br>
</div>
<div class="elementToProof">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best Regards</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Scott Liang</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Student Information: 101222658 Jiahe Liang<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Paul Wouters <paul@nohats.ca><br>
<b>Sent:</b> September 22, 2023 11:11 AM<br>
<b>To:</b> Linzhang Liang <SCOTTLIANG3@cmail.carleton.ca><br>
<b>Cc:</b> swan@lists.libreswan.org <swan@lists.libreswan.org><br>
<b>Subject:</b> Re: [Swan] About libreswan library and man page</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[External Email]<br>
<br>
On Fri, 22 Sep 2023, Linzhang Liang wrote:<br>
<br>
> I am interested in accessing the programming interfaces of libreswan, which in my opinion is to use the<br>
> lib-libreswan. I can find the actual libraries and the header files under "/lib" and "/include" of the source code<br>
> base, respectively, but I can't seem to find the corresponding documentation for the use of the library. Is there a<br>
> documentation site just for the library of libreswan?<br>
><br>
> I installed libreswan on my Ubuntu 22.04 VM but I cannot find the man page of "ipsec". Is there a way that I can<br>
> install the man page onto my VM?<br>
<br>
Unfortunately, we don't have a library and API that is stable for that.<br>
You can use various commands to get status:<br>
ipsec status<br>
ipsec trafficstatus<br>
ipsec shuntstatus<br>
ipsec globalstatus<br>
<br>
We had wanted to build a varlink API to avoid needing to do a dbus API,<br>
as dbus libraries are horrible, but it seems varlink never gained<br>
momentum either. So we are now pondering just doing raw json output<br>
so other tools can read and parse what they want.<br>
<br>
Paul<br>
</div>
</span></font></div>
</body>
</html>