MCPcopy Create free account
hub / github.com/chris2511/xca / initPin

Method initPin

widgets/KeyTreeView.cpp:99–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void KeyTreeView::initPin()
100{
101 pki_scard *scard;
102 QModelIndex currentIdx = currentIndex();
103
104 if (!currentIdx.isValid())
105 return;
106 scard = db_base::fromIndex<pki_scard>(currentIdx);
107 try {
108 if (!scard->isToken()) {
109 throw errorEx(tr("This is not a token"));
110 }
111 scard->initPin();
112 } catch (errorEx &err) {
113 XCA_ERROR(err);
114 }
115}
116
117void KeyTreeView::changeSoPin()
118{

Callers

nothing calls this directly

Calls 3

errorExClass · 0.85
isValidMethod · 0.45
isTokenMethod · 0.45

Tested by

no test coverage detected