public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch 0/2] Refine the coding style.
@ 2017-01-05  3:51 Jiaxin Wu
  2017-01-05  3:51 ` [Patch 1/2] MdePkg, NetworkPkg: " Jiaxin Wu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jiaxin Wu @ 2017-01-05  3:51 UTC (permalink / raw)
  To: edk2-devel; +Cc: Ye Ting, Fu Siyuan, Long Qin, Liming Gao, Wu Jiaxin

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Long Qin <qin.long@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>

Jiaxin Wu (2):
  MdePkg, NetworkPkg: Refine the coding style.
  CryptoPkg/TlsLib: Refine the coding style.

 CryptoPkg/Library/TlsLib/TlsConfig.c   |  4 ++--
 CryptoPkg/Library/TlsLib/TlsProcess.c  |  4 ++--
 MdePkg/Include/IndustryStandard/Tls1.h | 10 +++++-----
 NetworkPkg/HttpDxe/HttpProto.c         |  4 ++--
 NetworkPkg/HttpDxe/HttpsSupport.c      | 16 ++++++++--------
 NetworkPkg/TlsDxe/TlsImpl.c            |  6 +++---
 NetworkPkg/TlsDxe/TlsProtocol.c        |  4 ++--
 7 files changed, 24 insertions(+), 24 deletions(-)

-- 
1.9.5.msysgit.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Patch 1/2] MdePkg, NetworkPkg: Refine the coding style.
  2017-01-05  3:51 [Patch 0/2] Refine the coding style Jiaxin Wu
@ 2017-01-05  3:51 ` Jiaxin Wu
  2017-01-05  3:51 ` [Patch 2/2] CryptoPkg/TlsLib: " Jiaxin Wu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Jiaxin Wu @ 2017-01-05  3:51 UTC (permalink / raw)
  To: edk2-devel; +Cc: Ye Ting, Fu Siyuan, Liming Gao, Wu Jiaxin

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
---
 MdePkg/Include/IndustryStandard/Tls1.h | 10 +++++-----
 NetworkPkg/HttpDxe/HttpProto.c         |  4 ++--
 NetworkPkg/HttpDxe/HttpsSupport.c      | 16 ++++++++--------
 NetworkPkg/TlsDxe/TlsImpl.c            |  6 +++---
 NetworkPkg/TlsDxe/TlsProtocol.c        |  4 ++--
 5 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/MdePkg/Include/IndustryStandard/Tls1.h b/MdePkg/Include/IndustryStandard/Tls1.h
index 14eb265..019ff61 100644
--- a/MdePkg/Include/IndustryStandard/Tls1.h
+++ b/MdePkg/Include/IndustryStandard/Tls1.h
@@ -1,11 +1,11 @@
 /** @file
   Transport Layer Security  -- TLS 1.0/1.1/1.2 Standard definitions, from RFC 2246/4346/5246    
 
   This file contains common TLS 1.0/1.1/1.2 definitions from RFC 2246/4346/5246 
 
-  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD License
   which accompanies this distribution.  The full text of the license may be found at
   http://opensource.org/licenses/bsd-license.php
 
@@ -70,14 +70,14 @@
 
 ///
 /// TLS Content Type, refers to A.1 of rfc-2246, rfc-4346 and rfc-5246.
 ///
 typedef enum {
-  TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC = 20,
-  TLS_CONTENT_TYPE_ALERT              = 21,
-  TLS_CONTENT_TYPE_HANDSHAKE          = 22,
-  TLS_CONTENT_TYPE_APPLICATION_DATA   = 23,
+  TlsContentTypeChangeCipherSpec = 20,
+  TlsContentTypeAlert            = 21,
+  TlsContentTypeHandshake        = 22,
+  TlsContentTypeApplicationData  = 23,
 } TLS_CONTENT_TYPE;
 
 ///
 /// TLS Record Header, refers to A.1 of rfc-2246, rfc-4346 and rfc-5246.
 ///
diff --git a/NetworkPkg/HttpDxe/HttpProto.c b/NetworkPkg/HttpDxe/HttpProto.c
index 2e784de..2e8c42e 100644
--- a/NetworkPkg/HttpDxe/HttpProto.c
+++ b/NetworkPkg/HttpDxe/HttpProto.c
@@ -1,9 +1,9 @@
 /** @file
   Miscellaneous routines for HttpDxe driver.
 
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>
 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
 http://opensource.org/licenses/bsd-license.php
@@ -1489,11 +1489,11 @@ HttpTransmitTcp (
     Buffer     = AllocateZeroPool (BufferSize);
     if (Buffer == NULL) {
       Status = EFI_OUT_OF_RESOURCES;
       return Status;
     }
-    ((TLS_RECORD_HEADER *) Buffer)->ContentType = TLS_CONTENT_TYPE_APPLICATION_DATA;
+    ((TLS_RECORD_HEADER *) Buffer)->ContentType = TlsContentTypeApplicationData;
     ((TLS_RECORD_HEADER *) Buffer)->Version.Major = HttpInstance->TlsConfigData.Version.Major;
     ((TLS_RECORD_HEADER *) Buffer)->Version.Minor = HttpInstance->TlsConfigData.Version.Minor;
     ((TLS_RECORD_HEADER *) Buffer)->Length = (UINT16) (TxStringLen);
     CopyMem (Buffer + sizeof (TLS_RECORD_HEADER), TxString, TxStringLen);
     
diff --git a/NetworkPkg/HttpDxe/HttpsSupport.c b/NetworkPkg/HttpDxe/HttpsSupport.c
index c9e6988..77e5371 100644
--- a/NetworkPkg/HttpDxe/HttpsSupport.c
+++ b/NetworkPkg/HttpDxe/HttpsSupport.c
@@ -1,9 +1,9 @@
 /** @file
   Miscellaneous routines specific to Https for HttpDxe driver.
 
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
 http://opensource.org/licenses/bsd-license.php
@@ -881,14 +881,14 @@ TlsReceiveOnePdu (
   if (EFI_ERROR (Status)) {
     goto ON_EXIT;
   }
 
   RecordHeader = *(TLS_RECORD_HEADER *) Header;
-  if ((RecordHeader.ContentType == TLS_CONTENT_TYPE_HANDSHAKE ||
-    RecordHeader.ContentType == TLS_CONTENT_TYPE_ALERT ||
-    RecordHeader.ContentType == TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC ||
-    RecordHeader.ContentType == TLS_CONTENT_TYPE_APPLICATION_DATA) &&
+  if ((RecordHeader.ContentType == TlsContentTypeHandshake ||
+    RecordHeader.ContentType == TlsContentTypeAlert ||
+    RecordHeader.ContentType == TlsContentTypeChangeCipherSpec ||
+    RecordHeader.ContentType == TlsContentTypeApplicationData) &&
     (RecordHeader.Version.Major == 0x03) && /// Major versions are same.
     (RecordHeader.Version.Minor == TLS10_PROTOCOL_VERSION_MINOR ||
     RecordHeader.Version.Minor ==TLS11_PROTOCOL_VERSION_MINOR ||
     RecordHeader.Version.Minor == TLS12_PROTOCOL_VERSION_MINOR)
    ) {
@@ -1495,11 +1495,11 @@ HttpsReceive (
   //
   // Handle Receive data.
   //
   RecordHeader = *(TLS_RECORD_HEADER *) BufferIn;
 
-  if ((RecordHeader.ContentType == TLS_CONTENT_TYPE_APPLICATION_DATA) &&
+  if ((RecordHeader.ContentType == TlsContentTypeApplicationData) &&
     (RecordHeader.Version.Major == 0x03) &&
     (RecordHeader.Version.Minor == TLS10_PROTOCOL_VERSION_MINOR ||
     RecordHeader.Version.Minor == TLS11_PROTOCOL_VERSION_MINOR ||
     RecordHeader.Version.Minor == TLS12_PROTOCOL_VERSION_MINOR)
   ) {
@@ -1585,11 +1585,11 @@ HttpsReceive (
     }
 
     //
     // Parsing buffer.
     //
-    ASSERT (((TLS_RECORD_HEADER *) (TempFragment.Bulk))->ContentType == TLS_CONTENT_TYPE_APPLICATION_DATA);
+    ASSERT (((TLS_RECORD_HEADER *) (TempFragment.Bulk))->ContentType == TlsContentTypeApplicationData);
 
     BufferInSize = ((TLS_RECORD_HEADER *) (TempFragment.Bulk))->Length;
     BufferIn = AllocateZeroPool (BufferInSize);
     if (BufferIn == NULL) {
       Status = EFI_OUT_OF_RESOURCES;
@@ -1601,11 +1601,11 @@ HttpsReceive (
     //
     // Free the buffer in TempFragment.
     //
     FreePool (TempFragment.Bulk);
 
-  } else if ((RecordHeader.ContentType == TLS_CONTENT_TYPE_ALERT) &&
+  } else if ((RecordHeader.ContentType == TlsContentTypeAlert) &&
     (RecordHeader.Version.Major == 0x03) &&
     (RecordHeader.Version.Minor == TLS10_PROTOCOL_VERSION_MINOR ||
     RecordHeader.Version.Minor == TLS11_PROTOCOL_VERSION_MINOR ||
     RecordHeader.Version.Minor == TLS12_PROTOCOL_VERSION_MINOR)
     ) {
diff --git a/NetworkPkg/TlsDxe/TlsImpl.c b/NetworkPkg/TlsDxe/TlsImpl.c
index bb71bd8..efdec2d 100644
--- a/NetworkPkg/TlsDxe/TlsImpl.c
+++ b/NetworkPkg/TlsDxe/TlsImpl.c
@@ -1,9 +1,9 @@
 /** @file
   The Miscellaneous Routines for TlsDxe driver.
 
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
 
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
 http://opensource.org/licenses/bsd-license.php
@@ -103,11 +103,11 @@ TlsEncryptPacket (
   BufferInPtr = BufferIn;
   TempRecordHeader = (TLS_RECORD_HEADER *) BufferOut;
   while ((UINTN) BufferInPtr < (UINTN) BufferIn + BufferInSize) {
     RecordHeaderIn = (TLS_RECORD_HEADER *) BufferInPtr;
     
-    if (RecordHeaderIn->ContentType != TLS_CONTENT_TYPE_APPLICATION_DATA) {
+    if (RecordHeaderIn->ContentType != TlsContentTypeApplicationData) {
       Status = EFI_INVALID_PARAMETER;
       goto ERROR;
     }
     
     ThisPlainMessageSize = RecordHeaderIn->Length;
@@ -254,11 +254,11 @@ TlsDecryptPacket (
   BufferInPtr = BufferIn;
   TempRecordHeader = (TLS_RECORD_HEADER *) BufferOut;
   while ((UINTN) BufferInPtr < (UINTN) BufferIn + BufferInSize) {
     RecordHeaderIn = (TLS_RECORD_HEADER *) BufferInPtr;
 
-    if (RecordHeaderIn->ContentType != TLS_CONTENT_TYPE_APPLICATION_DATA) {
+    if (RecordHeaderIn->ContentType != TlsContentTypeApplicationData) {
       Status = EFI_INVALID_PARAMETER;
       goto ERROR;
     }
     
     ThisCipherMessageSize = NTOHS (RecordHeaderIn->Length);
diff --git a/NetworkPkg/TlsDxe/TlsProtocol.c b/NetworkPkg/TlsDxe/TlsProtocol.c
index ee1c496..58a83c3 100644
--- a/NetworkPkg/TlsDxe/TlsProtocol.c
+++ b/NetworkPkg/TlsDxe/TlsProtocol.c
@@ -1,9 +1,9 @@
 /** @file
   Implementation of EFI TLS Protocol Interfaces.
 
-  Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
 
   This program and the accompanying materials
   are licensed and made available under the terms and conditions of the BSD License
   which accompanies this distribution.  The full text of the license may be found at
   http://opensource.org/licenses/bsd-license.php.
@@ -521,11 +521,11 @@ TlsBuildResponsePacket (
       }
     } else {
       //
       // Must be alert message, Decrypt it and build the ResponsePacket.
       //
-      ASSERT (((TLS_RECORD_HEADER *) RequestBuffer)->ContentType == TLS_CONTENT_TYPE_ALERT);
+      ASSERT (((TLS_RECORD_HEADER *) RequestBuffer)->ContentType == TlsContentTypeAlert);
 
       Status = TlsHandleAlert (
                  Instance->TlsConn,
                  RequestBuffer,
                  RequestSize,
-- 
1.9.5.msysgit.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Patch 2/2] CryptoPkg/TlsLib: Refine the coding style.
  2017-01-05  3:51 [Patch 0/2] Refine the coding style Jiaxin Wu
  2017-01-05  3:51 ` [Patch 1/2] MdePkg, NetworkPkg: " Jiaxin Wu
@ 2017-01-05  3:51 ` Jiaxin Wu
  2017-01-05  5:19 ` [Patch 0/2] " Ye, Ting
  2017-01-05  6:51 ` Fu, Siyuan
  3 siblings, 0 replies; 5+ messages in thread
From: Jiaxin Wu @ 2017-01-05  3:51 UTC (permalink / raw)
  To: edk2-devel; +Cc: Ye Ting, Fu Siyuan, Long Qin, Wu Jiaxin

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Long Qin <qin.long@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
---
 CryptoPkg/Library/TlsLib/TlsConfig.c  | 4 ++--
 CryptoPkg/Library/TlsLib/TlsProcess.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/CryptoPkg/Library/TlsLib/TlsConfig.c b/CryptoPkg/Library/TlsLib/TlsConfig.c
index c2bec6c..f103da4 100644
--- a/CryptoPkg/Library/TlsLib/TlsConfig.c
+++ b/CryptoPkg/Library/TlsLib/TlsConfig.c
@@ -1,9 +1,9 @@
 /** @file
   SSL/TLS Configuration Library Wrapper Implementation over OpenSSL.
 
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
 http://opensource.org/licenses/bsd-license.php
@@ -420,11 +420,11 @@ TlsSetCaCertificate (
   X509_STORE      *X509Store;
   EFI_STATUS      Status;
   TLS_CONNECTION  *TlsConn;
   SSL_CTX         *SslCtx;
   INTN            Ret;
-  unsigned long   ErrorCode;
+  UINTN           ErrorCode;
 
   BioCert   = NULL;
   Cert      = NULL;
   X509Store = NULL;
   Status    = EFI_SUCCESS;
diff --git a/CryptoPkg/Library/TlsLib/TlsProcess.c b/CryptoPkg/Library/TlsLib/TlsProcess.c
index e47a46f..8532dab 100644
--- a/CryptoPkg/Library/TlsLib/TlsProcess.c
+++ b/CryptoPkg/Library/TlsLib/TlsProcess.c
@@ -1,10 +1,10 @@
 /** @file
   SSL/TLS Process Library Wrapper Implementation over OpenSSL.
   The process includes the TLS handshake and packet I/O.
 
-Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
 (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
 This program and the accompanying materials
 are licensed and made available under the terms and conditions of the BSD License
 which accompanies this distribution.  The full text of the license may be found at
 http://opensource.org/licenses/bsd-license.php
@@ -85,11 +85,11 @@ TlsDoHandshake (
   )
 {
   TLS_CONNECTION  *TlsConn;
   UINTN           PendingBufferSize;
   INTN            Ret;
-  unsigned long   ErrorCode;
+  UINTN           ErrorCode;
 
   TlsConn           = (TLS_CONNECTION *) Tls;
   PendingBufferSize = 0;
   Ret               = 1;
 
-- 
1.9.5.msysgit.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Patch 0/2] Refine the coding style.
  2017-01-05  3:51 [Patch 0/2] Refine the coding style Jiaxin Wu
  2017-01-05  3:51 ` [Patch 1/2] MdePkg, NetworkPkg: " Jiaxin Wu
  2017-01-05  3:51 ` [Patch 2/2] CryptoPkg/TlsLib: " Jiaxin Wu
@ 2017-01-05  5:19 ` Ye, Ting
  2017-01-05  6:51 ` Fu, Siyuan
  3 siblings, 0 replies; 5+ messages in thread
From: Ye, Ting @ 2017-01-05  5:19 UTC (permalink / raw)
  To: Wu, Jiaxin, edk2-devel@lists.01.org; +Cc: Fu, Siyuan, Long, Qin, Gao, Liming

Series Reviewed-by: Ye Ting <ting.ye@intel.com> 

-----Original Message-----
From: Wu, Jiaxin 
Sent: Thursday, January 05, 2017 11:52 AM
To: edk2-devel@lists.01.org
Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Long, Qin <qin.long@intel.com>; Gao, Liming <liming.gao@intel.com>; Wu, Jiaxin <jiaxin.wu@intel.com>
Subject: [Patch 0/2] Refine the coding style.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Long Qin <qin.long@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>

Jiaxin Wu (2):
  MdePkg, NetworkPkg: Refine the coding style.
  CryptoPkg/TlsLib: Refine the coding style.

 CryptoPkg/Library/TlsLib/TlsConfig.c   |  4 ++--
 CryptoPkg/Library/TlsLib/TlsProcess.c  |  4 ++--  MdePkg/Include/IndustryStandard/Tls1.h | 10 +++++-----
 NetworkPkg/HttpDxe/HttpProto.c         |  4 ++--
 NetworkPkg/HttpDxe/HttpsSupport.c      | 16 ++++++++--------
 NetworkPkg/TlsDxe/TlsImpl.c            |  6 +++---
 NetworkPkg/TlsDxe/TlsProtocol.c        |  4 ++--
 7 files changed, 24 insertions(+), 24 deletions(-)

--
1.9.5.msysgit.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Patch 0/2] Refine the coding style.
  2017-01-05  3:51 [Patch 0/2] Refine the coding style Jiaxin Wu
                   ` (2 preceding siblings ...)
  2017-01-05  5:19 ` [Patch 0/2] " Ye, Ting
@ 2017-01-05  6:51 ` Fu, Siyuan
  3 siblings, 0 replies; 5+ messages in thread
From: Fu, Siyuan @ 2017-01-05  6:51 UTC (permalink / raw)
  To: Wu, Jiaxin, edk2-devel@lists.01.org; +Cc: Ye, Ting, Long, Qin, Gao, Liming

Series Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>

-----Original Message-----
From: Wu, Jiaxin 
Sent: 2017年1月5日 11:52
To: edk2-devel@lists.01.org
Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Long, Qin <qin.long@intel.com>; Gao, Liming <liming.gao@intel.com>; Wu, Jiaxin <jiaxin.wu@intel.com>
Subject: [Patch 0/2] Refine the coding style.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Long Qin <qin.long@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>

Jiaxin Wu (2):
  MdePkg, NetworkPkg: Refine the coding style.
  CryptoPkg/TlsLib: Refine the coding style.

 CryptoPkg/Library/TlsLib/TlsConfig.c   |  4 ++--
 CryptoPkg/Library/TlsLib/TlsProcess.c  |  4 ++--  MdePkg/Include/IndustryStandard/Tls1.h | 10 +++++-----
 NetworkPkg/HttpDxe/HttpProto.c         |  4 ++--
 NetworkPkg/HttpDxe/HttpsSupport.c      | 16 ++++++++--------
 NetworkPkg/TlsDxe/TlsImpl.c            |  6 +++---
 NetworkPkg/TlsDxe/TlsProtocol.c        |  4 ++--
 7 files changed, 24 insertions(+), 24 deletions(-)

--
1.9.5.msysgit.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-05  6:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-05  3:51 [Patch 0/2] Refine the coding style Jiaxin Wu
2017-01-05  3:51 ` [Patch 1/2] MdePkg, NetworkPkg: " Jiaxin Wu
2017-01-05  3:51 ` [Patch 2/2] CryptoPkg/TlsLib: " Jiaxin Wu
2017-01-05  5:19 ` [Patch 0/2] " Ye, Ting
2017-01-05  6:51 ` Fu, Siyuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox