]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c
CryptoPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / SysCall / ConstantTimeClock.c
index 7f20164999f35496d2968bf17abf73080e0cfa8a..18b04f2afd54e5daa099cb5fc2970b0798f01c40 100644 (file)
   6)  DhGenerateKey\r
 \r
 Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -31,8 +25,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 time_t time (time_t *timer)\r
 {\r
-  *timer = 0;\r
-  return *timer;\r
+  if (timer != NULL) {\r
+    *timer = 0;\r
+  }\r
+  return 0;\r
 }\r
 \r
 struct tm * gmtime (const time_t *timer)\r