summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/tmdiff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/tmdiff.h')
-rw-r--r--src/lib/libcrypto/tmdiff.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/lib/libcrypto/tmdiff.h b/src/lib/libcrypto/tmdiff.h
index 41a8a1e0e0..af5c41c649 100644
--- a/src/lib/libcrypto/tmdiff.h
+++ b/src/lib/libcrypto/tmdiff.h
@@ -59,6 +59,16 @@
59/* Header for dynamic hash table routines 59/* Header for dynamic hash table routines
60 * Author - Eric Young 60 * Author - Eric Young
61 */ 61 */
62/* ... erm yeah, "dynamic hash tables" you say?
63 *
64 * And what would dynamic hash tables have to do with any of this code *now*?
65 * AFAICS, this code is only referenced by crypto/bn/exp.c which is an unused
66 * file that I doubt compiles any more. speed.c is the only thing that could
67 * use this (and it has nothing to do with hash tables), yet it instead has its
68 * own duplication of all this stuff and looks, if anything, more complete. See
69 * the corresponding note in apps/speed.c.
70 * The Bemused - Geoff
71 */
62 72
63#ifndef HEADER_TMDIFF_H 73#ifndef HEADER_TMDIFF_H
64#define HEADER_TMDIFF_H 74#define HEADER_TMDIFF_H
@@ -67,11 +77,13 @@
67extern "C" { 77extern "C" {
68#endif 78#endif
69 79
70char *ms_time_new(void ); 80typedef struct ms_tm MS_TM;
71void ms_time_free(char *a); 81
72void ms_time_get(char *a); 82MS_TM *ms_time_new(void );
73double ms_time_diff(char *start,char *end); 83void ms_time_free(MS_TM *a);
74int ms_time_cmp(char *ap,char *bp); 84void ms_time_get(MS_TM *a);
85double ms_time_diff(MS_TM *start, MS_TM *end);
86int ms_time_cmp(const MS_TM *ap, const MS_TM *bp);
75 87
76#ifdef __cplusplus 88#ifdef __cplusplus
77} 89}