|
|
|
@ -367,12 +367,15 @@ namespace client
@@ -367,12 +367,15 @@ namespace client
|
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//ensure it's a base64 string
|
|
|
|
|
i2p::data::PrivateKeys keys; |
|
|
|
|
if (!keys.FromBase64(destination)) |
|
|
|
|
if (destination != SAM_VALUE_TRANSIENT) |
|
|
|
|
{ |
|
|
|
|
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true); |
|
|
|
|
return; |
|
|
|
|
//ensure it's a base64 string
|
|
|
|
|
i2p::data::PrivateKeys keys; |
|
|
|
|
if (!keys.FromBase64(destination)) |
|
|
|
|
{ |
|
|
|
|
SendMessageReply(SAM_SESSION_STATUS_INVALID_KEY, strlen(SAM_SESSION_STATUS_INVALID_KEY), true); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// create destination
|
|
|
|
|