[SecureRepository] Deprecate OCSP check API (#3352)
authorTomasz Świerczek <t.swierczek@samsung.com>
Tue, 14 Sep 2021 00:29:16 +0000 (02:29 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Sep 2021 00:29:16 +0000 (09:29 +0900)
API duplicates publicly available OpenSSL API and is a burden to maintain.

Co-authored-by: WonYoung Choi <wy80.choi@samsung.com>
src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/CertificateManager.cs
src/Tizen.Security.SecureRepository/Tizen.Security.SecureRepository/OcspStatus.cs

index 631de76..bbb4654 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2016 - 2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -272,6 +272,7 @@ namespace Tizen.Security.SecureRepository
         /// <exception cref="InvalidOperationException">
         /// Some of the certificates in chain are expired or not valid yet.
         /// </exception>
+        [Obsolete("Please do not use! This will be deprecated with API9 and removed with API11! Please use raw OpenSSL instead!")]
         static public OcspStatus CheckOcsp(IEnumerable<Certificate> certificateChain)
         {
             if (certificateChain == null)
index 4e58135..fb73dba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2016 - 2021 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -26,6 +26,7 @@ namespace Tizen.Security.SecureRepository
     /// Enumeration for the OCSP status.
     /// </summary>
     /// <since_tizen> 3 </since_tizen>
+    [Obsolete("Please do not use! This will be deprecated with API9 and removed with API11! Please use raw OpenSSL instead!")]
     public enum OcspStatus : int
     {
         /// <summary>