mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
cffb65f2ff
Since djgpp has neither a timezone variable or timegm(), this horrible method must be used. It is the only one I could find that produces accurate results, and is recommended as portable alternative to timegm() by the GNU libc manual. Reference: https://www.gnu.org/software/libc/manual/html_node/Broken_002ddown-Time.html#index-timegm Now, a much nicer alternative solution could be: timestamp_local = mktime(timestamp_tm); timestamp_utc = timestamp_local + timestamp_tm->tm_gmtoff - (timestamp_tm->tm_isdst ? 3600 : 0); This works due to the fact that mktime() populates the tm_gmtoff and tm_isdst fields in the source timestamp. It is accurate everywhere in the world, *except* on Lord Howe Island, Australia, where a 30 minute DST offset is used. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19274) |
||
---|---|---|
.. | ||
aes | ||
aria | ||
asn1 | ||
async | ||
bf | ||
bio | ||
bn | ||
buffer | ||
camellia | ||
cast | ||
chacha | ||
cmac | ||
cmp | ||
cms | ||
comp | ||
conf | ||
crmf | ||
ct | ||
des | ||
dh | ||
dsa | ||
dso | ||
ec | ||
encode_decode | ||
engine | ||
err | ||
ess | ||
evp | ||
ffc | ||
hmac | ||
hpke | ||
http | ||
idea | ||
kdf | ||
lhash | ||
md2 | ||
md4 | ||
md5 | ||
mdc2 | ||
modes | ||
objects | ||
ocsp | ||
pem | ||
perlasm | ||
pkcs7 | ||
pkcs12 | ||
poly1305 | ||
property | ||
rand | ||
rc2 | ||
rc4 | ||
rc5 | ||
ripemd | ||
rsa | ||
seed | ||
sha | ||
siphash | ||
sm2 | ||
sm3 | ||
sm4 | ||
srp | ||
stack | ||
store | ||
ts | ||
txt_db | ||
ui | ||
whrlpool | ||
x509 | ||
alphacpuid.pl | ||
arm64cpuid.pl | ||
arm_arch.h | ||
armcap.c | ||
armv4cpuid.pl | ||
asn1_dsa.c | ||
bsearch.c | ||
build.info | ||
c64xpluscpuid.pl | ||
context.c | ||
core_algorithm.c | ||
core_fetch.c | ||
core_namemap.c | ||
cpt_err.c | ||
cpuid.c | ||
cryptlib.c | ||
ctype.c | ||
cversion.c | ||
der_writer.c | ||
dllmain.c | ||
ebcdic.c | ||
ex_data.c | ||
getenv.c | ||
ia64cpuid.S | ||
info.c | ||
init.c | ||
initthread.c | ||
LPdir_nyi.c | ||
LPdir_unix.c | ||
LPdir_vms.c | ||
LPdir_win32.c | ||
LPdir_win.c | ||
LPdir_wince.c | ||
mem_clr.c | ||
mem_sec.c | ||
mem.c | ||
mips_arch.h | ||
o_dir.c | ||
o_fopen.c | ||
o_init.c | ||
o_str.c | ||
o_time.c | ||
packet.c | ||
param_build_set.c | ||
param_build.c | ||
params_dup.c | ||
params_from_text.c | ||
params.c | ||
pariscid.pl | ||
passphrase.c | ||
ppccap.c | ||
ppccpuid.pl | ||
provider_child.c | ||
provider_conf.c | ||
provider_core.c | ||
provider_local.h | ||
provider_predefined.c | ||
provider.c | ||
punycode.c | ||
quic_vlint.c | ||
README-sparse_array.md | ||
riscv32cpuid.pl | ||
riscv64cpuid.pl | ||
riscvcap.c | ||
s390x_arch.h | ||
s390xcap.c | ||
s390xcpuid.pl | ||
self_test_core.c | ||
sparccpuid.S | ||
sparcv9cap.c | ||
sparse_array.c | ||
threads_lib.c | ||
threads_none.c | ||
threads_pthread.c | ||
threads_win.c | ||
time.c | ||
trace.c | ||
uid.c | ||
vms_rms.h | ||
x86_64cpuid.pl | ||
x86cpuid.pl |