diff options
Diffstat (limited to 'src/lib/libcrypto/o_time.c')
-rw-r--r-- | src/lib/libcrypto/o_time.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/o_time.c b/src/lib/libcrypto/o_time.c index 000372d35b..287aaae7ab 100644 --- a/src/lib/libcrypto/o_time.c +++ b/src/lib/libcrypto/o_time.c | |||
@@ -13,7 +13,7 @@ | |||
13 | * are met: | 13 | * are met: |
14 | * | 14 | * |
15 | * 1. Redistributions of source code must retain the above copyright | 15 | * 1. Redistributions of source code must retain the above copyright |
16 | * notice, this list of conditions and the following disclaimer. | 16 | * notice, this list of conditions and the following disclaimer. |
17 | * | 17 | * |
18 | * 2. Redistributions in binary form must reproduce the above copyright | 18 | * 2. Redistributions in binary form must reproduce the above copyright |
19 | * notice, this list of conditions and the following disclaimer in | 19 | * notice, this list of conditions and the following disclaimer in |
@@ -192,19 +192,19 @@ check_time(long offset) | |||
192 | gmtime_r(&t1, &tm1); | 192 | gmtime_r(&t1, &tm1); |
193 | OPENSSL_gmtime_adj(&tm1, 0, offset); | 193 | OPENSSL_gmtime_adj(&tm1, 0, offset); |
194 | if ((tm1.tm_year == tm2.tm_year) && | 194 | if ((tm1.tm_year == tm2.tm_year) && |
195 | (tm1.tm_mon == tm2.tm_mon) && | 195 | (tm1.tm_mon == tm2.tm_mon) && |
196 | (tm1.tm_mday == tm2.tm_mday) && | 196 | (tm1.tm_mday == tm2.tm_mday) && |
197 | (tm1.tm_hour == tm2.tm_hour) && | 197 | (tm1.tm_hour == tm2.tm_hour) && |
198 | (tm1.tm_min == tm2.tm_min) && | 198 | (tm1.tm_min == tm2.tm_min) && |
199 | (tm1.tm_sec == tm2.tm_sec)) | 199 | (tm1.tm_sec == tm2.tm_sec)) |
200 | return 1; | 200 | return 1; |
201 | fprintf(stderr, "TIME ERROR!!\n"); | 201 | fprintf(stderr, "TIME ERROR!!\n"); |
202 | fprintf(stderr, "Time1: %d/%d/%d, %d:%02d:%02d\n", | 202 | fprintf(stderr, "Time1: %d/%d/%d, %d:%02d:%02d\n", |
203 | tm2.tm_mday, tm2.tm_mon + 1, tm2.tm_year + 1900, | 203 | tm2.tm_mday, tm2.tm_mon + 1, tm2.tm_year + 1900, |
204 | tm2.tm_hour, tm2.tm_min, tm2.tm_sec); | 204 | tm2.tm_hour, tm2.tm_min, tm2.tm_sec); |
205 | fprintf(stderr, "Time2: %d/%d/%d, %d:%02d:%02d\n", | 205 | fprintf(stderr, "Time2: %d/%d/%d, %d:%02d:%02d\n", |
206 | tm1.tm_mday, tm1.tm_mon + 1, tm1.tm_year + 1900, | 206 | tm1.tm_mday, tm1.tm_mon + 1, tm1.tm_year + 1900, |
207 | tm1.tm_hour, tm1.tm_min, tm1.tm_sec); | 207 | tm1.tm_hour, tm1.tm_min, tm1.tm_sec); |
208 | return 0; | 208 | return 0; |
209 | } | 209 | } |
210 | 210 | ||