| 135 | } |
| 136 | |
| 137 | void CertTreeView::loadTaKey() |
| 138 | { |
| 139 | pki_x509 *ca = db_base::fromIndex<pki_x509>(currentIndex()); |
| 140 | if (!ca || !ca->isCA()) |
| 141 | return; |
| 142 | |
| 143 | load_takey l; |
| 144 | QString fname = QFileDialog::getOpenFileName(this, l.caption, |
| 145 | getHomeDir(), l.filter); |
| 146 | if (fname.isEmpty()) |
| 147 | return; |
| 148 | XFile f(fname); |
| 149 | f.open_read(); |
| 150 | ca->importTaKey(f.read(4096)); |
| 151 | } |
| 152 | |
| 153 | void CertTreeView::genCrl() |
| 154 | { |
nothing calls this directly
no test coverage detected