Bug 277478

Summary: newer openswan daemons require leftid=%fromcert
Product: [Unmaintained] kvpnc Reporter: uholeschak <ulrich>
Component: generalAssignee: Christoph Thielecke <crissi99>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.9.6   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description uholeschak 2011-07-10 17:22:03 UTC
Version:           0.9.6 (using KDE 4.6.2) 
OS:                Linux

Newer versions of openswan (>=2.5.16) require leftid=%fromcert in asn1dn mode.

So we need a modification like this in kvpnc.cpp:
----------------------------------------------------
if (GlobalConfig->currentProfile->getLocalIDType() == i18n("Certificate ID")) {
...
} else {
   if (GlobalConfig->currentProfile->getLocalIDType() == i18n("asn1dn"))
   {
      stream << "    leftid=%fromcert\n"; // fromcert required
   }
   else
   {
      stream << "    leftid=\"" + GlobalConfig->currentProfile->getSpecialLocalID() << "\"" << "\n";
   }
}


Reproducible: Always

Steps to Reproduce:
Newer openswan versions not working in asn1dn mode.
leftid="" in config file.


Expected Results:  
leftid=%fromcert
Comment 1 Andrew Crouthamel 2018-09-04 14:55:09 UTC
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug.