| 553 | // class cPrivateKeyProxy |
| 554 | |
| 555 | bool cPrivateKeyProxy::AquireKey(cKeyFile& keyFile, int8* passphrase, int passphraseLen) |
| 556 | { |
| 557 | if (mpKey != 0) |
| 558 | { |
| 559 | ASSERT(mpKeyFile != 0); |
| 560 | mpKeyFile->ReleasePrivateKey(); |
| 561 | } |
| 562 | |
| 563 | mpKeyFile = &keyFile; |
| 564 | mpKey = keyFile.GetPrivateKey(passphrase, passphraseLen); |
| 565 | |
| 566 | return mpKey != 0; |
| 567 | } |
| 568 | |
| 569 | cPrivateKeyProxy::~cPrivateKeyProxy() |
| 570 | { |