Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0


  44  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  45  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
  46  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  47  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  48  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  49  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  50  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  51  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  52  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  53  * OF THE POSSIBILITY OF SUCH DAMAGE.
  54  * ====================================================================
  55  *
  56  * This product includes cryptographic software written by Eric Young
  57  * (eay@cryptsoft.com).  This product includes software written by Tim
  58  * Hudson (tjh@cryptsoft.com).
  59  *
  60  */
  61 
  62 #include <openssl/e_os2.h>
  63 #include <string.h>
  64 #include "o_time.h"
  65 
  66 #ifdef OPENSSL_SYS_VMS
  67 # if __CRTL_VER >= 70000000 && \
  68      (defined _POSIX_C_SOURCE || !defined _ANSI_C_SOURCE)
  69 #  define VMS_GMTIME_OK
  70 # endif
  71 # ifndef VMS_GMTIME_OK
  72 #  include <libdtdef.h>
  73 #  include <lib$routines.h>
  74 #  include <lnmdef.h>
  75 #  include <starlet.h>
  76 #  include <descrip.h>
  77 #  include <stdlib.h>
  78 # endif /* ndef VMS_GMTIME_OK */
  79 #endif
  80 
  81 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
  82         {
  83         struct tm *ts = NULL;
  84 




  44  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  45  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
  46  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  47  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  48  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  49  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  50  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  51  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  52  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  53  * OF THE POSSIBILITY OF SUCH DAMAGE.
  54  * ====================================================================
  55  *
  56  * This product includes cryptographic software written by Eric Young
  57  * (eay@cryptsoft.com).  This product includes software written by Tim
  58  * Hudson (tjh@cryptsoft.com).
  59  *
  60  */
  61 
  62 #include <openssl/e_os2.h>
  63 #include <string.h>
  64 #include <o_time.h>
  65 
  66 #ifdef OPENSSL_SYS_VMS
  67 # if __CRTL_VER >= 70000000 && \
  68      (defined _POSIX_C_SOURCE || !defined _ANSI_C_SOURCE)
  69 #  define VMS_GMTIME_OK
  70 # endif
  71 # ifndef VMS_GMTIME_OK
  72 #  include <libdtdef.h>
  73 #  include <lib$routines.h>
  74 #  include <lnmdef.h>
  75 #  include <starlet.h>
  76 #  include <descrip.h>
  77 #  include <stdlib.h>
  78 # endif /* ndef VMS_GMTIME_OK */
  79 #endif
  80 
  81 struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result)
  82         {
  83         struct tm *ts = NULL;
  84