]>
Commit | Line | Data |
---|---|---|
38fcd027 | 1 | /** @file\r |
2 | C Run-Time Libraries (CRT) Time Management Routines Wrapper Implementation\r | |
3 | for OpenSSL-based Cryptographic Library.\r | |
4 | \r | |
5 | This C file implements constant time value for time() and NULL for gmtime()\r | |
6 | thus should not be used in library instances which require functionality\r | |
7 | of following APIs which need system time support:\r | |
8 | 1) RsaGenerateKey\r | |
9 | 2) RsaCheckKey\r | |
10 | 3) RsaPkcs1Sign\r | |
11 | 4) Pkcs7Sign\r | |
12 | 5) DhGenerateParameter\r | |
13 | 6) DhGenerateKey\r | |
14 | \r | |
fc9fa685 | 15 | Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>\r |
2009f6b4 | 16 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
38fcd027 | 17 | \r |
18 | **/\r | |
19 | \r | |
fc9fa685 | 20 | #include <CrtLibSupport.h>\r |
38fcd027 | 21 | \r |
22 | //\r | |
23 | // -- Time Management Routines --\r | |
24 | //\r | |
25 | \r | |
26 | time_t time (time_t *timer)\r | |
27 | {\r | |
7c410b3d QL |
28 | if (timer != NULL) {\r |
29 | *timer = 0;\r | |
30 | }\r | |
31 | return 0;\r | |
38fcd027 | 32 | }\r |
33 | \r | |
34 | struct tm * gmtime (const time_t *timer)\r | |
35 | {\r | |
36 | return NULL;\r | |
fc9fa685 | 37 | }\r |