Commit ff49a944 authored by Ben Laurie's avatar Ben Laurie
Browse files

Move gmtime functions to crypto.h.

parent e91fb53b
Loading
Loading
Loading
Loading
+1 −1
Changes for crypto/Makefile: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ SRC= $(LIBSRC)

EXHEADER= crypto.h opensslv.h opensslconf.h ebcdic.h symhacks.h \
	ossl_typ.h
HEADER=	cryptlib.h buildinf.h md32_common.h o_time.h o_str.h o_dir.h $(EXHEADER)
HEADER=	cryptlib.h buildinf.h md32_common.h o_str.h o_dir.h $(EXHEADER)

ALL=    $(GENERAL) $(SRC) $(HEADER)

+6
Changes for crypto/crypto.h: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -118,6 +118,7 @@
#define HEADER_CRYPTO_H

#include <stdlib.h>
#include <time.h>

#include <openssl/e_os2.h>

@@ -580,6 +581,11 @@ int CRYPTO_memcmp(const void *a, const void *b, size_t len);
 */
void ERR_load_CRYPTO_strings(void);

struct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);
int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);
int OPENSSL_gmtime_diff(int *pday, int *psec,
			const struct tm *from, const struct tm *to);

/* Error codes for the CRYPTO functions. */

/* Function codes. */
+1 −1
Changes for crypto/o_time.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@

#include <openssl/e_os2.h>
#include <string.h>
#include "o_time.h"
#include "crypto.h"

#ifdef OPENSSL_SYS_VMS
# if __CRTL_VER >= 70000000 && \
−69

File deleted.