]>
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 | |
7c342378 MK |
26 | time_t\r |
27 | time (\r | |
28 | time_t *timer\r | |
29 | )\r | |
38fcd027 | 30 | {\r |
7c410b3d QL |
31 | if (timer != NULL) {\r |
32 | *timer = 0;\r | |
33 | }\r | |
7c342378 | 34 | \r |
7c410b3d | 35 | return 0;\r |
38fcd027 | 36 | }\r |
37 | \r | |
7c342378 MK |
38 | struct tm *\r |
39 | gmtime (\r | |
40 | const time_t *timer\r | |
41 | )\r | |
38fcd027 | 42 | {\r |
43 | return NULL;\r | |
fc9fa685 | 44 | }\r |