| 10373 | } |
| 10374 | |
| 10375 | ICryptKey* ClntAuthBlock::newKey(CheckStatusWrapper* status) |
| 10376 | { |
| 10377 | status->init(); |
| 10378 | try |
| 10379 | { |
| 10380 | InternalCryptKey* k = FB_NEW InternalCryptKey; |
| 10381 | |
| 10382 | fb_assert(plugins.hasData()); |
| 10383 | k->keyName = plugins.name(); |
| 10384 | WIRECRYPT_DEBUG(fprintf(stderr, "Cli: newkey %s\n", k->keyName.c_str());) |
| 10385 | cryptKeys.add(k); |
| 10386 | |
| 10387 | return k; |
| 10388 | } |
| 10389 | catch (const Exception& ex) |
| 10390 | { |
| 10391 | ex.stuffException(status); |
| 10392 | } |
| 10393 | return NULL; |
| 10394 | } |
| 10395 | |
| 10396 | void ClntAuthBlock::tryNewKeys(rem_port* port) |
| 10397 | { |