plasma-nm: vpn: openconnect: pkcs11: add support for separate pin value
Needs RevisionPublic

Authored by thorstenb on Sep 13 2017, 10:07 AM.

Details

Reviewers
jgrulich
Group Reviewers
Plasma
Summary

openconnect: patch which add support for seperate pin value for pkcs11 url

plasma-nm openconnect should support separate pin value in config file for pkcs11 url. (Pin should not be visible in log)

https://bugs.kde.org/show_bug.cgi?id=384652

Diff Detail

Repository
R116 Plasma Network Management Applet
Lint
Lint Skipped
Unit
Unit Tests Skipped
thorstenb created this revision.Sep 13 2017, 10:07 AM
Restricted Application added a project: Plasma. · View Herald TranscriptSep 13 2017, 10:07 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

One thing which is not clear to me is where did you get NM_OPENCONNECT_KEY_PIN? All the NM_OPENCONNECT_KEY_* values are synced from NM-openconnect plugin and I don't see anything like that in that NM plugin. We also don't set anything like that in the editor, which means that condition where you check for dataMap[NM_OPENCONNECT_KEY_PIN] will never be true.

In have no idea about a sync from NM-openconnect plugin. Most code of NM-openconnect plugin is no longer in use. I my opinion it was for forking a openconnect command line process. Looks like most parts of NM-openconnect plugin are obsolete because of libopenconnect usage. And the used code does not handle dataMap in a filter way.
The pin in loaded like any other value in group 'vpn' and just paste into dataMap. I face not such a problem you are describing.
This code is already working right in a "proof of concept (with a softhsm2)" for "City of Munic government" enterprise environment.

jgrulich requested changes to this revision.Sep 25 2017, 8:27 AM
This revision now requires changes to proceed.Sep 25 2017, 8:27 AM
jgrulich added inline comments.Sep 25 2017, 8:30 AM
plasma-nm-5.10.5/vpn/openconnect/openconnectauth.cpp
162

Coding style. Missing space before "{".

165

Coding style. Missing space before "{".

167

Coding style. Missing space before "{".

168

Coding style. Missing indent.

203

Coding style. Missing space before "{".

397

Coding style. No space after "if (" and also the whole condition can be on one line, it's not that long.

398

Coding style. Missing space before "{".

400

Coding style. Missing space before and after "=".

thorstenb marked 8 inline comments as done.Oct 4 2017, 6:02 AM

Hi,
i've done a arc redo because of "arc patch" not working and web "diff update" also not working.
D8134 is the updated patch with the requested coding style.
Sorry for not using arc in first place.

cfeck added a subscriber: cfeck.Oct 4 2017, 10:44 AM

No problem, can you please abandon this diff then?