summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalavakolanu, Hema Anmisha <hema.anmisha.kalavakolanu@intel.com>2024-12-26 13:57:45 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-01-02 12:28:51 +0000
commit62de957185d71feb9c4d09f4eddcdac1980632fb (patch)
tree2e9cec7a9ae1aa4c713687c50ec4d0817be2a3ed
parent070eadb55037c4c897aecbcc442186e723e8b40d (diff)
downloadedk2-62de957185d71feb9c4d09f4eddcdac1980632fb.tar.gz
CryptoPkg: Add sleep() function to BaseCryptLibMbedTls
In BaseCryptLib sleep() function is defined, apply the same sleep function to BaseCryptLibMbedTls Signed-off-by: "Kalavakolanu, Hema Anmisha" <hema.anmisha.kalavakolanu@intel.com>
-rw-r--r--CryptoPkg/Library/BaseCryptLibMbedTls/SysCall/ConstantTimeClock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/CryptoPkg/Library/BaseCryptLibMbedTls/SysCall/ConstantTimeClock.c b/CryptoPkg/Library/BaseCryptLibMbedTls/SysCall/ConstantTimeClock.c
index e6e0f1ec2d..a4a873271f 100644
--- a/CryptoPkg/Library/BaseCryptLibMbedTls/SysCall/ConstantTimeClock.c
+++ b/CryptoPkg/Library/BaseCryptLibMbedTls/SysCall/ConstantTimeClock.c
@@ -47,6 +47,15 @@ gmtime (
return NULL;
}
+/**sleep function. **/
+unsigned int
+sleep (
+ unsigned int seconds
+ )
+{
+ return 0;
+}
+
/**_time64 function. **/
time_t
_time64 (