181 if (strEnvelopeContents.
Exists())
182 return envelope.
Seal(*publicKey_, strEnvelopeContents);
186 "ClientConnection::SealMessageForRecipient: "
187 "Unable to seal message, possibly a missing public key. \n");
198 if (
nullptr != publicKey_) {
200 publicKey_ =
nullptr;
void SetPublicKey(const OTString &publicKey)
EXPORT bool Seal(const OTPseudonym &theRecipient, const OTString &theInput)
EXPORT bool Exists() const
static EXPORT void Error(const char *szError)
EXPORT bool SetPublicKey(const OTASCIIArmor &strKey)
EXPORT bool GetPublicKey(OTASCIIArmor &strKey) const
bool SealMessageForRecipient(OTMessage &msg, OTEnvelope &envelope)