]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CryptoPkg/Library/BaseCryptLib/SysCall/ConstantTimeClock.c
CryptoPkg: Apply uncrustify changes
[mirror_edk2.git] / CryptoPkg / Library / BaseCryptLib / SysCall / ConstantTimeClock.c
index 0a19a69533b76e432047ab51d7ce6c659ec06db7..2956b92d08277cf5972226e57cf353eb360f0ff0 100644 (file)
   5)  DhGenerateParameter\r
   6)  DhGenerateKey\r
 \r
-Copyright (c) 2010 - 2012, 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
+Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
-#include <OpenSslSupport.h>\r
+#include <CrtLibSupport.h>\r
 \r
 //\r
 // -- Time Management Routines --\r
 //\r
 \r
-time_t time (time_t *timer)\r
+time_t\r
+time (\r
+  time_t  *timer\r
+  )\r
 {\r
-  *timer = 0;\r
-  return *timer;\r
+  if (timer != NULL) {\r
+    *timer = 0;\r
+  }\r
+\r
+  return 0;\r
 }\r
 \r
-struct tm * gmtime (const time_t *timer)\r
+struct tm *\r
+gmtime (\r
+  const time_t  *timer\r
+  )\r
 {\r
   return NULL;\r
-}
\ No newline at end of file
+}\r