Bug 277478 - newer openswan daemons require leftid=%fromcert
Summary: newer openswan daemons require leftid=%fromcert
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kvpnc
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 0.9.6
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Christoph Thielecke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-10 17:22 UTC by uholeschak
Modified: 2018-09-04 14:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.