]>
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 |
38fcd027 | 16 | This program and the accompanying materials\r |
17 | are licensed and made available under the terms and conditions of the BSD License\r | |
18 | which accompanies this distribution. The full text of the license may be found at\r | |
19 | http://opensource.org/licenses/bsd-license.php\r | |
20 | \r | |
21 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
22 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
23 | \r | |
24 | **/\r | |
25 | \r | |
fc9fa685 | 26 | #include <CrtLibSupport.h>\r |
38fcd027 | 27 | \r |
28 | //\r | |
29 | // -- Time Management Routines --\r | |
30 | //\r | |
31 | \r | |
32 | time_t time (time_t *timer)\r | |
33 | {\r | |
7c410b3d QL |
34 | if (timer != NULL) {\r |
35 | *timer = 0;\r | |
36 | }\r | |
37 | return 0;\r | |
38fcd027 | 38 | }\r |
39 | \r | |
40 | struct tm * gmtime (const time_t *timer)\r | |
41 | {\r | |
42 | return NULL;\r | |
fc9fa685 | 43 | }\r |