Home | History | Annotate | Download | only in SysCall
      1 /** @file
      2   C Run-Time Libraries (CRT) Time Management Routines Wrapper Implementation
      3   for OpenSSL-based Cryptographic Library.
      4 
      5   This C file implements constant time value for time() and NULL for gmtime()
      6   thus should not be used in library instances which require functionality
      7   of following APIs which need system time support:
      8   1)  RsaGenerateKey
      9   2)  RsaCheckKey
     10   3)  RsaPkcs1Sign
     11   4)  Pkcs7Sign
     12   5)  DhGenerateParameter
     13   6)  DhGenerateKey
     14 
     15 Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.<BR>
     16 This program and the accompanying materials
     17 are licensed and made available under the terms and conditions of the BSD License
     18 which accompanies this distribution.  The full text of the license may be found at
     19 http://opensource.org/licenses/bsd-license.php
     20 
     21 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     22 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     23 
     24 **/
     25 
     26 #include <OpenSslSupport.h>
     27 
     28 //
     29 // -- Time Management Routines --
     30 //
     31 
     32 time_t time (time_t *timer)
     33 {
     34   *timer = 0;
     35   return *timer;
     36 }
     37 
     38 struct tm * gmtime (const time_t *timer)
     39 {
     40   return NULL;
     41 }