Debian Codegraph @

templates/man3/ASN1_TIME_set.3ssl.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:18+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 # #-#-#-#-# archlinux: ASN1_TIME_set.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
20 #
21 #. #-#-#-#-# archlinux: ASN1_TIME_set.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
22 #. Required to disable full justification in groff 1.23.0.
23 #. ========================================================================
24 #. type: IX
25 #. #-#-#-#-# debian-trixie: ASN1_TIME_set.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
26 #. ========================================================================
27 #. type: IX
28 #. #-#-#-#-# debian-unstable: ASN1_TIME_set.3ssl.pot (PACKAGE VERSION) #-#-#-#-#
29 #. ========================================================================
30 #. type: IX
31 #: archlinux debian-trixie debian-unstable
32 #, no-wrap
33 msgid "Title"
34 msgstr ""
35
36 #
37 #. Required to disable full justification in groff 1.23.0.
38 #. ========================================================================
39 #. type: IX
40 #: archlinux
41 #, no-wrap
42 msgid "ASN1_TIME_SET 3ssl"
43 msgstr ""
44
45 #. type: TH
46 #: archlinux debian-trixie debian-unstable
47 #, no-wrap
48 msgid "ASN1_TIME_SET"
49 msgstr ""
50
51 #. type: TH
52 #: archlinux debian-trixie debian-unstable
53 #, no-wrap
54 msgid "2026-04-07"
55 msgstr ""
56
57 #. type: TH
58 #: archlinux debian-unstable
59 #, no-wrap
60 msgid "3.6.2"
61 msgstr ""
62
63 #. type: TH
64 #: archlinux debian-trixie debian-unstable
65 #, no-wrap
66 msgid "OpenSSL"
67 msgstr ""
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable
71 #, no-wrap
72 msgid "NAME"
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable
77 msgid ""
78 "ASN1_TIME_set, ASN1_UTCTIME_set, ASN1_GENERALIZEDTIME_set, ASN1_TIME_adj, "
79 "ASN1_UTCTIME_adj, ASN1_GENERALIZEDTIME_adj, ASN1_TIME_check, "
80 "ASN1_UTCTIME_check, ASN1_GENERALIZEDTIME_check, ASN1_TIME_set_string, "
81 "ASN1_UTCTIME_set_string, ASN1_GENERALIZEDTIME_set_string, "
82 "ASN1_TIME_set_string_X509, ASN1_TIME_normalize, ASN1_TIME_to_tm, "
83 "ASN1_TIME_print, ASN1_TIME_print_ex, ASN1_UTCTIME_print, "
84 "ASN1_GENERALIZEDTIME_print, ASN1_TIME_diff, ASN1_TIME_cmp_time_t, "
85 "ASN1_UTCTIME_cmp_time_t, ASN1_TIME_compare, ASN1_TIME_to_generalizedtime, "
86 "ASN1_TIME_dup, ASN1_UTCTIME_dup, ASN1_GENERALIZEDTIME_dup - ASN.1 Time "
87 "functions"
88 msgstr ""
89
90 #. type: IX
91 #: archlinux debian-trixie debian-unstable
92 #, no-wrap
93 msgid "SYNOPSIS"
94 msgstr ""
95
96 #. type: IX
97 #: archlinux debian-trixie debian-unstable
98 #, no-wrap
99 msgid "Header"
100 msgstr ""
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable
104 #, no-wrap
105 msgid ""
106 "\\& ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);\n"
107 "\\& ASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t);\n"
108 "\\& ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,\n"
109 "\\& time_t t);\n"
110 "\\&\n"
111 "\\& ASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t, int offset_day,\n"
112 "\\& long offset_sec);\n"
113 "\\& ASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t,\n"
114 "\\& int offset_day, long offset_sec);\n"
115 "\\& ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_adj(ASN1_GENERALIZEDTIME *s,\n"
116 "\\& time_t t, int offset_day,\n"
117 "\\& long offset_sec);\n"
118 "\\&\n"
119 "\\& int ASN1_TIME_set_string(ASN1_TIME *s, const char *str);\n"
120 "\\& int ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);\n"
121 "\\& int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str);\n"
122 "\\& int ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s,\n"
123 "\\& const char *str);\n"
124 "\\&\n"
125 "\\& int ASN1_TIME_normalize(ASN1_TIME *s);\n"
126 "\\&\n"
127 "\\& int ASN1_TIME_check(const ASN1_TIME *t);\n"
128 "\\& int ASN1_UTCTIME_check(const ASN1_UTCTIME *t);\n"
129 "\\& int ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *t);\n"
130 "\\&\n"
131 "\\& int ASN1_TIME_print(BIO *b, const ASN1_TIME *s);\n"
132 "\\& int ASN1_TIME_print_ex(BIO *bp, const ASN1_TIME *tm, unsigned long flags);\n"
133 "\\& int ASN1_UTCTIME_print(BIO *b, const ASN1_UTCTIME *s);\n"
134 "\\& int ASN1_GENERALIZEDTIME_print(BIO *b, const ASN1_GENERALIZEDTIME *s);\n"
135 "\\&\n"
136 "\\& int ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);\n"
137 "\\& int ASN1_TIME_diff(int *pday, int *psec, const ASN1_TIME *from,\n"
138 "\\& const ASN1_TIME *to);\n"
139 "\\&\n"
140 "\\& int ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t);\n"
141 "\\& int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t);\n"
142 "\\&\n"
143 "\\& int ASN1_TIME_compare(const ASN1_TIME *a, const ASN1_TIME *b);\n"
144 "\\&\n"
145 "\\& ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t,\n"
146 "\\& ASN1_GENERALIZEDTIME **out);\n"
147 "\\&\n"
148 "\\& ASN1_TIME *ASN1_TIME_dup(const ASN1_TIME *t);\n"
149 "\\& ASN1_UTCTIME *ASN1_UTCTIME_dup(const ASN1_UTCTIME *t);\n"
150 "\\& ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_dup(const ASN1_GENERALIZEDTIME *t);\n"
151 msgstr ""
152
153 #. type: IX
154 #: archlinux debian-trixie debian-unstable
155 #, no-wrap
156 msgid "DESCRIPTION"
157 msgstr ""
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable
161 msgid ""
162 "The B<ASN1_TIME_set()>, B<ASN1_UTCTIME_set()> and "
163 "B<ASN1_GENERALIZEDTIME_set()> functions set the structure I<s> to the time "
164 "represented by the time_t value I<t>. If I<s> is NULL a new time structure "
165 "is allocated and returned."
166 msgstr ""
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable
170 msgid ""
171 "The B<ASN1_TIME_adj()>, B<ASN1_UTCTIME_adj()> and "
172 "B<ASN1_GENERALIZEDTIME_adj()> functions set the time structure I<s> to the "
173 "time represented by the time I<offset_day> and I<offset_sec> after the "
174 "time_t value I<t>. The values of I<offset_day> or I<offset_sec> can be "
175 "negative to set a time before I<t>. The I<offset_sec> value can also exceed "
176 "the number of seconds in a day. If I<s> is NULL a new structure is allocated "
177 "and returned."
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable
182 msgid ""
183 "The B<ASN1_TIME_set_string()>, B<ASN1_UTCTIME_set_string()> and "
184 "\\&B<ASN1_GENERALIZEDTIME_set_string()> functions set the time structure "
185 "I<s> to the time represented by string I<str> which must be in appropriate "
186 "ASN.1 time format (for example YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ). If I<s> is "
187 "NULL this function performs a format check on I<str> only. The string I<str> "
188 "is copied into I<s>."
189 msgstr ""
190
191 #. type: Plain text
192 #: archlinux debian-trixie debian-unstable
193 msgid ""
194 "\\&B<ASN1_TIME_set_string_X509()> sets B<ASN1_TIME> structure I<s> to the "
195 "time represented by string I<str> which must be in appropriate time format "
196 "that RFC 5280 requires, which means it only allows YYMMDDHHMMSSZ and "
197 "YYYYMMDDHHMMSSZ (leap second is rejected), all other ASN.1 time format are "
198 "not allowed. If I<s> is NULL this function performs a format check on I<str> "
199 "only."
200 msgstr ""
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable
204 msgid ""
205 "The B<ASN1_TIME_normalize()> function converts an B<ASN1_GENERALIZEDTIME> or "
206 "\\&B<ASN1_UTCTIME> into a time value that can be used in a certificate. It "
207 "should be used after the B<ASN1_TIME_set_string()> functions and before "
208 "\\&B<ASN1_TIME_print()> functions to get consistent (i.e. GMT) results."
209 msgstr ""
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable
213 msgid ""
214 "The B<ASN1_TIME_check()>, B<ASN1_UTCTIME_check()> and "
215 "B<ASN1_GENERALIZEDTIME_check()> functions check the syntax of the time "
216 "structure I<s>."
217 msgstr ""
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable
221 msgid ""
222 "The B<ASN1_TIME_print()>, B<ASN1_UTCTIME_print()> and "
223 "B<ASN1_GENERALIZEDTIME_print()> functions print the time structure I<s> to "
224 "BIO I<b> in human readable format. It will be of the format MMM DD "
225 "HH:MM:SS[.s*] YYYY GMT, for example \"Feb 3 00:55:52 2015 GMT\", which does "
226 "not include a newline. If the time structure has invalid format it prints "
227 "out \"Bad time value\" and returns an error. The output for generalized time "
228 "may include a fractional part following the second."
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable
233 msgid ""
234 "\\&B<ASN1_TIME_print_ex()> provides I<flags> to specify the output format of "
235 "the datetime. This can be either B<ASN1_DTFLGS_RFC822> or "
236 "B<ASN1_DTFLGS_ISO8601>."
237 msgstr ""
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable
241 msgid ""
242 "\\&B<ASN1_TIME_to_tm()> converts the time I<s> to the standard I<tm> "
243 "structure. If I<s> is NULL, then the current time is converted. The output "
244 "time is GMT. The I<tm_sec>, I<tm_min>, I<tm_hour>, I<tm_mday>, I<tm_wday>, "
245 "I<tm_yday>, \\&I<tm_mon> and I<tm_year> fields of I<tm> structure are set to "
246 "proper values, whereas all other fields are set to 0. If I<tm> is NULL this "
247 "function performs a format check on I<s> only. If I<s> is in Generalized "
248 "format with fractional seconds, e.g. YYYYMMDDHHMMSS.SSSZ, the fractional "
249 "seconds will be lost while converting I<s> to I<tm> structure."
250 msgstr ""
251
252 #. type: Plain text
253 #: archlinux debian-trixie debian-unstable
254 msgid ""
255 "\\&B<ASN1_TIME_diff()> sets I<*pday> and I<*psec> to the time difference "
256 "between \\&I<from> and I<to>. If I<to> represents a time later than I<from> "
257 "then one or both (depending on the time difference) of I<*pday> and I<*psec> "
258 "will be positive. If I<to> represents a time earlier than I<from> then one "
259 "or both of I<*pday> and I<*psec> will be negative. If I<to> and I<from> "
260 "represent the same time then I<*pday> and I<*psec> will both be zero. If "
261 "both I<*pday> and I<*psec> are nonzero they will always have the same sign. "
262 "The value of I<*psec> will always be less than the number of seconds in a "
263 "day. If I<from> or I<to> is NULL the current time is used."
264 msgstr ""
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable
268 msgid ""
269 "The B<ASN1_TIME_cmp_time_t()> and B<ASN1_UTCTIME_cmp_time_t()> functions "
270 "compare the two times represented by the time structure I<s> and the time_t "
271 "I<t>."
272 msgstr ""
273
274 #. type: Plain text
275 #: archlinux debian-trixie debian-unstable
276 msgid ""
277 "The B<ASN1_TIME_compare()> function compares the two times represented by "
278 "the time structures I<a> and I<b>."
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable
283 msgid ""
284 "The B<ASN1_TIME_to_generalizedtime()> function converts an B<ASN1_TIME> to "
285 "an \\&B<ASN1_GENERALIZEDTIME>, regardless of year. If either I<out> or "
286 "\\&I<*out> are NULL, then a new object is allocated and must be freed after "
287 "use."
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable
292 msgid ""
293 "The B<ASN1_TIME_dup()>, B<ASN1_UTCTIME_dup()> and "
294 "B<ASN1_GENERALIZEDTIME_dup()> functions duplicate the time structure I<t> "
295 "and return the duplicated result correspondingly."
296 msgstr ""
297
298 #. type: IX
299 #: archlinux debian-trixie debian-unstable
300 #, no-wrap
301 msgid "NOTES"
302 msgstr ""
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable
306 msgid ""
307 "The B<ASN1_TIME> structure corresponds to the ASN.1 structure B<Time> "
308 "defined in RFC5280 et al. The time setting functions obey the rules outlined "
309 "in RFC5280: if the date can be represented by UTCTime it is used, else "
310 "GeneralizedTime is used."
311 msgstr ""
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable
315 msgid ""
316 "The B<ASN1_TIME>, B<ASN1_UTCTIME> and B<ASN1_GENERALIZEDTIME> structures are "
317 "represented as an B<ASN1_STRING> internally and can be freed up using "
318 "\\&B<ASN1_STRING_free()>."
319 msgstr ""
320
321 #. type: Plain text
322 #: archlinux debian-trixie debian-unstable
323 msgid ""
324 "The B<ASN1_TIME> structure can represent years from 0000 to 9999 but no "
325 "attempt is made to correct ancient calendar changes (for example from Julian "
326 "to Gregorian calendars)."
327 msgstr ""
328
329 #. type: Plain text
330 #: archlinux debian-trixie debian-unstable
331 msgid "\\&B<ASN1_UTCTIME> is limited to a year range of 1950 through 2049."
332 msgstr ""
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable
336 msgid ""
337 "Some applications add offset times directly to a time_t value and pass the "
338 "results to B<ASN1_TIME_set()> (or equivalent). This can cause problems as "
339 "the time_t value can overflow on some systems resulting in unexpected "
340 "results. New applications should use B<ASN1_TIME_adj()> instead and pass "
341 "the offset value in the I<offset_sec> and I<offset_day> parameters instead "
342 "of directly manipulating a time_t value."
343 msgstr ""
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable
347 msgid ""
348 "\\&B<ASN1_TIME_adj()> may change the type from B<ASN1_GENERALIZEDTIME> to "
349 "\\&B<ASN1_UTCTIME>, or vice versa, based on the resulting year. "
350 "\\&B<ASN1_GENERALIZEDTIME_adj()> and B<ASN1_UTCTIME_adj()> will not modify "
351 "the type of the return structure."
352 msgstr ""
353
354 #. type: Plain text
355 #: archlinux debian-trixie debian-unstable
356 msgid ""
357 "It is recommended that functions starting with B<ASN1_TIME> be used instead "
358 "of those starting with B<ASN1_UTCTIME> or B<ASN1_GENERALIZEDTIME>. The "
359 "functions starting with B<ASN1_UTCTIME> and B<ASN1_GENERALIZEDTIME> act only "
360 "on that specific time format. The functions starting with B<ASN1_TIME> will "
361 "operate on either format."
362 msgstr ""
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable
366 msgid ""
367 "Users familiar with RFC822 should note that when specifying the flag "
368 "\\&B<ASN1_DTFLGS_RFC822> the year will be formatted as documented above, "
369 "i.e., using 4 digits, not 2 as specified in RFC822."
370 msgstr ""
371
372 #. type: IX
373 #: archlinux debian-trixie debian-unstable
374 #, no-wrap
375 msgid "BUGS"
376 msgstr ""
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable
380 msgid ""
381 "\\&B<ASN1_TIME_print()>, B<ASN1_UTCTIME_print()> and "
382 "B<ASN1_GENERALIZEDTIME_print()> do not print out the timezone: it either "
383 "prints out \"GMT\" or nothing. But all certificates complying with RFC5280 "
384 "et al use GMT anyway."
385 msgstr ""
386
387 #. type: Plain text
388 #: archlinux debian-trixie debian-unstable
389 msgid ""
390 "\\&B<ASN1_TIME_print()>, B<ASN1_TIME_print_ex()>, B<ASN1_UTCTIME_print()> "
391 "and \\&B<ASN1_GENERALIZEDTIME_print()> do not distinguish if they fail "
392 "because of an I/O error or invalid time format."
393 msgstr ""
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable
397 msgid ""
398 "Use the B<ASN1_TIME_normalize()> function to normalize the time value before "
399 "printing to get GMT results."
400 msgstr ""
401
402 #. type: IX
403 #: archlinux debian-trixie debian-unstable
404 #, no-wrap
405 msgid "RETURN VALUES"
406 msgstr ""
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable
410 msgid ""
411 "\\&B<ASN1_TIME_set()>, B<ASN1_UTCTIME_set()>, B<ASN1_GENERALIZEDTIME_set()>, "
412 "\\&B<ASN1_TIME_adj()>, B<ASN1_UTCTIME_adj()> and "
413 "B<ASN1_GENERALIZEDTIME_set()> return a pointer to a time structure or NULL "
414 "if an error occurred."
415 msgstr ""
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable
419 msgid ""
420 "\\&B<ASN1_TIME_set_string()>, B<ASN1_UTCTIME_set_string()>, "
421 "\\&B<ASN1_GENERALIZEDTIME_set_string()> and B<ASN1_TIME_set_string_X509()> "
422 "return 1 if the time value is successfully set and 0 otherwise."
423 msgstr ""
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable
427 msgid "\\&B<ASN1_TIME_normalize()> returns 1 on success, and 0 on error."
428 msgstr ""
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable
432 msgid ""
433 "\\&B<ASN1_TIME_check()>, ASN1_UTCTIME_check and "
434 "B<ASN1_GENERALIZEDTIME_check()> return 1 if the structure is syntactically "
435 "correct and 0 otherwise."
436 msgstr ""
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable
440 msgid ""
441 "\\&B<ASN1_TIME_print()>, B<ASN1_UTCTIME_print()> and "
442 "B<ASN1_GENERALIZEDTIME_print()> return 1 if the time is successfully printed "
443 "out and 0 if an I/O error occurred an error occurred (I/O error or invalid "
444 "time format)."
445 msgstr ""
446
447 #. type: Plain text
448 #: archlinux debian-trixie debian-unstable
449 msgid ""
450 "\\&B<ASN1_TIME_to_tm()> returns 1 if the time is successfully parsed and 0 "
451 "if an error occurred (invalid time format)."
452 msgstr ""
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable
456 msgid ""
457 "\\&B<ASN1_TIME_diff()> returns 1 for success and 0 for failure. It can fail "
458 "if the passed-in time structure has invalid syntax, for example."
459 msgstr ""
460
461 #. type: Plain text
462 #: archlinux debian-trixie debian-unstable
463 msgid ""
464 "\\&B<ASN1_TIME_cmp_time_t()> and B<ASN1_UTCTIME_cmp_time_t()> return -1 if "
465 "I<s> is before I<t>, 0 if I<s> equals I<t>, or 1 if I<s> is after I<t>. -2 "
466 "is returned on error."
467 msgstr ""
468
469 #. type: Plain text
470 #: archlinux debian-trixie debian-unstable
471 msgid ""
472 "\\&B<ASN1_TIME_compare()> returns -1 if I<a> is before I<b>, 0 if I<a> "
473 "equals I<b>, or 1 if I<a> is after I<b>. -2 is returned on error."
474 msgstr ""
475
476 #. type: Plain text
477 #: archlinux debian-trixie debian-unstable
478 msgid ""
479 "\\&B<ASN1_TIME_to_generalizedtime()> returns a pointer to the appropriate "
480 "time structure on success or NULL if an error occurred."
481 msgstr ""
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable
485 msgid ""
486 "\\&B<ASN1_TIME_dup()>, B<ASN1_UTCTIME_dup()> and "
487 "B<ASN1_GENERALIZEDTIME_dup()> return a pointer to a time structure or NULL "
488 "if an error occurred."
489 msgstr ""
490
491 #. type: IX
492 #: archlinux debian-trixie debian-unstable
493 #, no-wrap
494 msgid "EXAMPLES"
495 msgstr ""
496
497 #. type: Plain text
498 #: archlinux debian-trixie debian-unstable
499 msgid ""
500 "Set a time structure to one hour after the current time and print it out:"
501 msgstr ""
502
503 #. type: Plain text
504 #: archlinux debian-trixie debian-unstable
505 #, no-wrap
506 msgid ""
507 "\\& #include E<lt>time.hE<gt>\n"
508 "\\& #include E<lt>openssl/asn1.hE<gt>\n"
509 "\\&\n"
510 "\\& ASN1_TIME *tm;\n"
511 "\\& time_t t;\n"
512 "\\& BIO *b;\n"
513 "\\&\n"
514 "\\& t = time(NULL);\n"
515 "\\& tm = ASN1_TIME_adj(NULL, t, 0, 60 * 60);\n"
516 "\\& b = BIO_new_fp(stdout, BIO_NOCLOSE);\n"
517 "\\& ASN1_TIME_print(b, tm);\n"
518 "\\& ASN1_STRING_free(tm);\n"
519 "\\& BIO_free(b);\n"
520 msgstr ""
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable
524 msgid "Determine if one time is later or sooner than the current time:"
525 msgstr ""
526
527 #. type: Plain text
528 #: archlinux debian-trixie debian-unstable
529 #, no-wrap
530 msgid ""
531 "\\& int day, sec;\n"
532 "\\&\n"
533 "\\& if (!ASN1_TIME_diff(&day, &sec, NULL, to))\n"
534 "\\& /* Invalid time format */\n"
535 "\\&\n"
536 "\\& if (day E<gt> 0 || sec E<gt> 0)\n"
537 "\\& printf(\"Later\\en\");\n"
538 "\\& else if (day E<lt> 0 || sec E<lt> 0)\n"
539 "\\& printf(\"Sooner\\en\");\n"
540 "\\& else\n"
541 "\\& printf(\"Same\\en\");\n"
542 msgstr ""
543
544 #. type: IX
545 #: archlinux debian-trixie debian-unstable
546 #, no-wrap
547 msgid "HISTORY"
548 msgstr ""
549
550 #. type: Plain text
551 #: archlinux debian-trixie debian-unstable
552 msgid ""
553 "The B<ASN1_TIME_to_tm()> function was added in OpenSSL 1.1.1. The "
554 "B<ASN1_TIME_set_string_X509()> function was added in OpenSSL 1.1.1. The "
555 "B<ASN1_TIME_normalize()> function was added in OpenSSL 1.1.1. The "
556 "B<ASN1_TIME_cmp_time_t()> function was added in OpenSSL 1.1.1. The "
557 "B<ASN1_TIME_compare()> function was added in OpenSSL 1.1.1."
558 msgstr ""
559
560 #. type: IX
561 #: archlinux debian-trixie debian-unstable
562 #, no-wrap
563 msgid "COPYRIGHT"
564 msgstr ""
565
566 #. type: Plain text
567 #: archlinux debian-trixie debian-unstable
568 msgid "Copyright 2015-2025 The OpenSSL Project Authors. All Rights Reserved."
569 msgstr ""
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable
573 msgid ""
574 "Licensed under the Apache License 2.0 (the \"License\"). You may not use "
575 "this file except in compliance with the License. You can obtain a copy in "
576 "the file LICENSE in the source distribution or at E<lt>https://"
577 "www.openssl.org/source/license.htmlE<gt>."
578 msgstr ""
579
580 #. ========================================================================
581 #. type: IX
582 #: debian-trixie debian-unstable
583 #, no-wrap
584 msgid "ASN1_TIME_SET 3SSL"
585 msgstr ""
586
587 #. type: TH
588 #: debian-trixie
589 #, no-wrap
590 msgid "3.5.6"
591 msgstr ""