Add openssl gmtime-related stubs.
Change-Id: I7ea606e40b24b94e1dade24781de52ffc50a77b2
diff --git a/lib/openssl-stubs/include/time.h b/lib/openssl-stubs/include/time.h
index 6a43a89..32fef59 100644
--- a/lib/openssl-stubs/include/time.h
+++ b/lib/openssl-stubs/include/time.h
@@ -28,6 +28,8 @@
#ifndef OPENSSL_STUB_TIME_H
#define OPENSSL_STUB_TIME_H
+#include <string.h>
+
typedef int time_t;
struct tm {
@@ -55,4 +57,13 @@
return 0;
}
+static inline struct tm *OPENSSL_gmtime(const time_t *timer, struct tm* result) {
+ memset(result, 0, sizeof(*result));
+ return result;
+}
+
+static inline int OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec) {
+ return 0;
+}
+
#endif /* OPENSSL_STUB_TIME_H */