mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 11:37:41 +03:00
Rename SMime actions
This commit is contained in:
parent
9a5a5091a1
commit
55e55b7bb7
3 changed files with 5 additions and 5 deletions
|
|
@ -44,7 +44,7 @@ export class IdentityPopupView extends AbstractViewPopup {
|
||||||
|
|
||||||
createSelfSigned() {
|
createSelfSigned() {
|
||||||
let identity = this.identity();
|
let identity = this.identity();
|
||||||
Remote.request('CreateSMimeCertificate', (iError, oData) => {
|
Remote.request('SMimeCreateCertificate', (iError, oData) => {
|
||||||
if (oData.Result.x509) {
|
if (oData.Result.x509) {
|
||||||
identity.smimeKey(oData.Result.pkey);
|
identity.smimeKey(oData.Result.pkey);
|
||||||
identity.smimeCertificate(oData.Result.x509);
|
identity.smimeCertificate(oData.Result.x509);
|
||||||
|
|
|
||||||
|
|
@ -634,7 +634,7 @@ export class MailMessageView extends AbstractViewRight {
|
||||||
data.folder = message.folder;
|
data.folder = message.folder;
|
||||||
data.uid = message.uid;
|
data.uid = message.uid;
|
||||||
data.bodyPart = data.bodyPart?.raw;
|
data.bodyPart = data.bodyPart?.raw;
|
||||||
Remote.post('MessageSMimeVerify', null, data).then(response => {
|
Remote.post('SMimeVerifyMessage', null, data).then(response => {
|
||||||
if (response?.Result) {
|
if (response?.Result) {
|
||||||
if (response.Result.body) {
|
if (response.Result.body) {
|
||||||
MimeToMessage(response.Result.body, message);
|
MimeToMessage(response.Result.body, message);
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ trait SMime
|
||||||
/**
|
/**
|
||||||
* Can be use by Identity
|
* Can be use by Identity
|
||||||
*/
|
*/
|
||||||
public function DoCreateSMimeCertificate() : array
|
public function DoSMimeCreateCertificate() : array
|
||||||
{
|
{
|
||||||
$oAccount = $this->getAccountFromToken();
|
$oAccount = $this->getAccountFromToken();
|
||||||
/*
|
/*
|
||||||
|
|
@ -41,7 +41,7 @@ trait SMime
|
||||||
return $this->DefaultResponse($result ?: false);
|
return $this->DefaultResponse($result ?: false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function DoMessageSMimeVerify() : array
|
public function DoSMimeVerifyMessage() : array
|
||||||
{
|
{
|
||||||
$sFolderName = $this->GetActionParam('folder', '');
|
$sFolderName = $this->GetActionParam('folder', '');
|
||||||
$iUid = (int) $this->GetActionParam('uid', 0);
|
$iUid = (int) $this->GetActionParam('uid', 0);
|
||||||
|
|
@ -72,7 +72,7 @@ trait SMime
|
||||||
}
|
}
|
||||||
$sBody .= $oFetchResponse->GetFetchValue(FetchType::BODY.'['.$sPartId.']');
|
$sBody .= $oFetchResponse->GetFetchValue(FetchType::BODY.'['.$sPartId.']');
|
||||||
|
|
||||||
$SMIME = new \SnappyMail\SMime\OpenSSL;
|
$SMIME = new OpenSSL;
|
||||||
$result = $SMIME->verify($sBody, null, !$bDetached);
|
$result = $SMIME->verify($sBody, null, !$bDetached);
|
||||||
|
|
||||||
return $this->DefaultResponse($result);
|
return $this->DefaultResponse($result);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue