Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/heimdal Merge differences between 7.7.0 ...
details: https://anonhg.NetBSD.org/src/rev/6758ed3b2f45
branches: trunk
changeset: 376472:6758ed3b2f45
user: christos <christos%NetBSD.org@localhost>
date: Mon Jun 19 21:41:38 2023 +0000
description:
Merge differences between 7.7.0 and 7.8.0
diffstat:
crypto/external/bsd/heimdal/dist/NEWS | 67 +
crypto/external/bsd/heimdal/dist/admin/add.c | 7 +-
crypto/external/bsd/heimdal/dist/admin/change.c | 5 +-
crypto/external/bsd/heimdal/dist/cf/._ltoptions.m4 | Bin
crypto/external/bsd/heimdal/dist/cf/._ltsugar.m4 | Bin
crypto/external/bsd/heimdal/dist/cf/._lt~obsolete.m4 | Bin
crypto/external/bsd/heimdal/dist/cf/broken-getaddrinfo.m4 | 26 -
crypto/external/bsd/heimdal/dist/cf/roken-frag.m4 | 14 +-
crypto/external/bsd/heimdal/dist/config.guess | 1634 +-
crypto/external/bsd/heimdal/dist/configure.ac | 7 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/base/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/base/man/man3/heimbase.3 | 78 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi.3 | 56 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi_mechs_intro.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/gssapi_services_intro.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/gssapi/man/man3/internal_v_smechname.3 | 10 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/EVP_hcrypto_md2.3 | 3 -
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/EVP_md2.3 | 3 -
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_core.3 | 14 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_des.3 | 58 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_dh.3 | 58 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_evp.3 | 394 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_misc.3 | 14 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_rand.3 | 42 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/hcrypto_rsa.3 | 34 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_des.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_dh.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_evp.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_rand.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hcrypto/man/man3/page_rsa.3 | 12 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/man/man3/HDB.3 | 6 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hdb/man/man3/hdb_entry_ex.3 | 6 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509.3 | 14 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_ca.3 | 108 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_cert.3 | 132 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_cms.3 | 32 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_crypto.3 | 12 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_env.3 | 30 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_error.3 | 22 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_keyset.3 | 66 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_lock.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_misc.3 | 12 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_name.3 | 52 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_peer.3 | 26 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_print.3 | 40 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_query.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_revoke.3 | 34 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/hx509_verify.3 | 54 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_ca.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_cert.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_cms.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_env.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_error.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_keyset.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_lock.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_name.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_peer.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_print.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/hx509/man/man3/page_revoke.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5.3 | 206 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_address.3 | 86 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_auth.3 | 28 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ccache.3 | 116 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ccache_intro.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_credential.3 | 42 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_crypto.3 | 114 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_crypto_iov.3 | 6 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_deprecated.3 | 26 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_digest.3 | 12 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_error.3 | 80 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_fileformats.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_init_creds_intro.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_introduction.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_keytab.3 | 92 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_keytab_intro.3 | 14 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_pac.3 | 16 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_prepend_error_message.3 | 2 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_principal.3 | 94 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_principal_intro.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_storage.3 | 230 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_support.3 | 116 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_ticket.3 | 12 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5_v4compat.3 | 16 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_an2ln_ftable_desc.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_db_ftable_desc.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/krb5/man/man3/krb5plugin_kuserok_ftable_desc.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_buf.3 | 12 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_core.3 | 102 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type1.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type2.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/ntlm/man/man3/ntlm_type3.3 | 8 +-
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/html/doxygen.png | Bin
crypto/external/bsd/heimdal/dist/doc/doxyout/wind/man/man3/wind.3 | 62 +-
crypto/external/bsd/heimdal/dist/doc/vars.texi | 4 +-
crypto/external/bsd/heimdal/dist/include/bits.c | 6 +-
crypto/external/bsd/heimdal/dist/include/crypto-headers.h | 2 +-
crypto/external/bsd/heimdal/dist/include/heim_threads.h | 2 +-
crypto/external/bsd/heimdal/dist/kadmin/ank.c | 6 +-
crypto/external/bsd/heimdal/dist/kadmin/cpw.c | 6 +-
crypto/external/bsd/heimdal/dist/kadmin/ext.c | 4 +-
crypto/external/bsd/heimdal/dist/kadmin/get.c | 2 +-
crypto/external/bsd/heimdal/dist/kadmin/kadmind.8 | 2 +-
crypto/external/bsd/heimdal/dist/kadmin/kadmind.c | 6 +-
crypto/external/bsd/heimdal/dist/kadmin/mod.c | 15 +-
crypto/external/bsd/heimdal/dist/kadmin/rpc.c | 4 +-
crypto/external/bsd/heimdal/dist/kadmin/stash.c | 10 +-
crypto/external/bsd/heimdal/dist/kadmin/util.c | 2 +-
crypto/external/bsd/heimdal/dist/kcm/cache.c | 4 +-
crypto/external/bsd/heimdal/dist/kcm/client.c | 2 +-
crypto/external/bsd/heimdal/dist/kcm/config.c | 4 +-
crypto/external/bsd/heimdal/dist/kcm/glue.c | 4 +-
crypto/external/bsd/heimdal/dist/kcm/kcm.8 | 2 +-
crypto/external/bsd/heimdal/dist/kcm/protocol.c | 4 +-
crypto/external/bsd/heimdal/dist/kdc/connect.c | 4 +-
crypto/external/bsd/heimdal/dist/kdc/default_config.c | 9 +-
crypto/external/bsd/heimdal/dist/kdc/digest.c | 6 +-
crypto/external/bsd/heimdal/dist/kdc/hprop.8 | 2 +-
crypto/external/bsd/heimdal/dist/kdc/hpropd.8 | 2 +-
crypto/external/bsd/heimdal/dist/kdc/hpropd.c | 7 +-
crypto/external/bsd/heimdal/dist/kdc/kdc-private.h | 5 +-
crypto/external/bsd/heimdal/dist/kdc/kdc-replay.c | 4 +-
crypto/external/bsd/heimdal/dist/kdc/kdc.8 | 15 +-
crypto/external/bsd/heimdal/dist/kdc/kdc.h | 3 +-
crypto/external/bsd/heimdal/dist/kdc/kerberos5.c | 38 +-
crypto/external/bsd/heimdal/dist/kdc/krb5tgs.c | 71 +-
crypto/external/bsd/heimdal/dist/kdc/kstash.8 | 2 +-
crypto/external/bsd/heimdal/dist/kdc/kstash.c | 7 +-
crypto/external/bsd/heimdal/dist/kdc/kx509.c | 2 +-
crypto/external/bsd/heimdal/dist/kdc/pkinit-ec.c | 2 +-
crypto/external/bsd/heimdal/dist/kdc/pkinit.c | 10 +-
crypto/external/bsd/heimdal/dist/kdc/string2key.8 | 2 +-
crypto/external/bsd/heimdal/dist/kdc/windc_plugin.h | 12 +-
crypto/external/bsd/heimdal/dist/kpasswd/kpasswd.c | 7 +-
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.8 | 2 +-
crypto/external/bsd/heimdal/dist/kpasswd/kpasswdd.c | 4 +-
crypto/external/bsd/heimdal/dist/kuser/copy_cred_cache.1 | 2 +-
crypto/external/bsd/heimdal/dist/kuser/kdestroy.1 | 2 +-
crypto/external/bsd/heimdal/dist/kuser/kdestroy.c | 4 +-
crypto/external/bsd/heimdal/dist/kuser/kgetcred.1 | 2 +-
crypto/external/bsd/heimdal/dist/kuser/kgetcred.c | 5 +-
crypto/external/bsd/heimdal/dist/kuser/kimpersonate.8 | 2 +-
crypto/external/bsd/heimdal/dist/kuser/kinit.1 | 16 +-
crypto/external/bsd/heimdal/dist/kuser/kinit.c | 18 +-
crypto/external/bsd/heimdal/dist/kuser/klist.1 | 2 +-
crypto/external/bsd/heimdal/dist/kuser/klist.c | 2 +-
crypto/external/bsd/heimdal/dist/kuser/kswitch.c | 7 +-
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.c | 2789 +-
crypto/external/bsd/heimdal/dist/lib/asn1/asn1parse.h | 255 +-
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.c | 12 +-
crypto/external/bsd/heimdal/dist/lib/asn1/check-common.h | 27 +-
crypto/external/bsd/heimdal/dist/lib/asn1/check-der.c | 23 +-
crypto/external/bsd/heimdal/dist/lib/asn1/check-gen.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/asn1/check-template.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/asn1/der_cmp.c | 9 +-
crypto/external/bsd/heimdal/dist/lib/asn1/der_copy.c | 12 +-
crypto/external/bsd/heimdal/dist/lib/asn1/der_get.c | 50 +-
crypto/external/bsd/heimdal/dist/lib/asn1/der_length.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/asn1/der_put.c | 44 +-
crypto/external/bsd/heimdal/dist/lib/asn1/gen.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/asn1/gen_copy.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/asn1/gen_decode.c | 16 +-
crypto/external/bsd/heimdal/dist/lib/asn1/gen_free.c | 12 +-
crypto/external/bsd/heimdal/dist/lib/asn1/gen_locl.h | 2 +-
crypto/external/bsd/heimdal/dist/lib/asn1/lex.c | 450 +-
crypto/external/bsd/heimdal/dist/lib/asn1/lex.h | 2 +-
crypto/external/bsd/heimdal/dist/lib/asn1/main.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/base/bsearch.c | 26 +-
crypto/external/bsd/heimdal/dist/lib/base/dll.c | 15 +-
crypto/external/bsd/heimdal/dist/lib/base/error.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/base/heimbase.c | 24 +-
crypto/external/bsd/heimdal/dist/lib/com_err/com_err.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/com_err/compile_et.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/com_err/lex.c | 436 +-
crypto/external/bsd/heimdal/dist/lib/com_err/parse.c | 1687 +-
crypto/external/bsd/heimdal/dist/lib/com_err/parse.h | 97 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/gss_acquire_cred.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/gssapi.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/accept_sec_context.c | 3 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/acquire_cred.c | 7 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/arcfour.c | 72 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/cfx.c | 54 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/decapsulate.c | 14 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/delete_sec_context.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/display_status.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/get_mic.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/gsskrb5-private.h | 5 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/init_sec_context.c | 18 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/unwrap.c | 36 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/verify_mic.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/wrap.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_display_status.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_import_name.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_mech_switch.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/gss_pname_to_uid.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech.5 | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/mech/mech_locl.h | 3 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/creds.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/crypto.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/ntlm/init_sec_context.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/spnego/accept_sec_context.c | 16 +-
crypto/external/bsd/heimdal/dist/lib/gssapi/test_context.c | 36 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/bn.c | 9 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/des.c | 38 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/dh.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/engine.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.c | 28 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-cc.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.c | 25 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-hcrypto.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.c | 11 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-openssl.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.c | 3 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-pkcs11.h | 6 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.c | 3 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-w32.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp-wincng.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.c | 26 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/evp.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/example_evp_cipher.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.c | 140 -
crypto/external/bsd/heimdal/dist/lib/hcrypto/md2.h | 65 -
crypto/external/bsd/heimdal/dist/lib/hcrypto/mdtest.c | 74 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/pkcs5.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_bulk.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/test_cipher.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.c | 11 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/ui.h | 6 +-
crypto/external/bsd/heimdal/dist/lib/hcrypto/undef.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/hdb/hdb.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/hdb/keys.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/hdb/keytab.c | 10 +-
crypto/external/bsd/heimdal/dist/lib/hx509/cert.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/hx509/cms.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/hx509/crypto.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/hx509/file.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/hx509/hxtool.c | 3 +-
crypto/external/bsd/heimdal/dist/lib/hx509/ks_file.c | 10 +-
crypto/external/bsd/heimdal/dist/lib/hx509/ks_p11.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/hx509/name.c | 13 +-
crypto/external/bsd/heimdal/dist/lib/hx509/revoke.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/hx509/sel-gram.y | 2 +-
crypto/external/bsd/heimdal/dist/lib/hx509/sel-lex.l | 2 +-
crypto/external/bsd/heimdal/dist/lib/hx509/sel.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/hx509/sel.h | 2 +-
crypto/external/bsd/heimdal/dist/lib/hx509/softp11.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/ipc/client.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/ad.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/get_s.c | 27 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/init_c.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop-log.8 | 2 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/iprop.8 | 2 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_master.c | 1000 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/ipropd_slave.c | 26 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5-private.h | 20 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/kadm5_locl.h | 9 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/log.c | 193 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/set_keys.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/kadm5/test_pw_quality.c | 10 +-
crypto/external/bsd/heimdal/dist/lib/kafs/afskrb5.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/kafs/afssysdefs.h | 6 +-
crypto/external/bsd/heimdal/dist/lib/kafs/rxkad_kdf.c | 3 +-
crypto/external/bsd/heimdal/dist/lib/krb5/acl.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/krb5/addr_families.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/krb5/aes-test.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/krb5/auth_context.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/config_file.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/krb5/context.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-aes-sha1.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-arcfour.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des-common.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-des3.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/crypto-evp.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/crypto.h | 8 +-
crypto/external/bsd/heimdal/dist/lib/krb5/deprecated.c | 12 +-
crypto/external/bsd/heimdal/dist/lib/krb5/enomem.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/krb5/get_cred.c | 10 +-
crypto/external/bsd/heimdal/dist/lib/krb5/get_default_principal.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/init_creds_pw.c | 12 +-
crypto/external/bsd/heimdal/dist/lib/krb5/keytab.c | 39 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5-plugin.7 | 14 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.conf.5 | 30 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5.h | 123 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb524_convert_creds_kdc.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_c_make_checksum.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_ccapi.h | 6 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_get_in_cred.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_init_context.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_is_thread_safe.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_principal.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_string_to_key.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krb5_timeofday.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/krbhst.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/krb5/kuserok.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/locate_plugin.h | 12 +-
crypto/external/bsd/heimdal/dist/lib/krb5/mcache.c | 7 +-
crypto/external/bsd/heimdal/dist/lib/krb5/pac.c | 178 +-
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit-ec.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/pkinit.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/plugin.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/krb5/principal.c | 40 +-
crypto/external/bsd/heimdal/dist/lib/krb5/rd_req.c | 11 +-
crypto/external/bsd/heimdal/dist/lib/krb5/salt-aes-sha2.c | 7 +-
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/krb5/salt-des3.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/krb5/salt.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc_plugin.h | 10 +-
crypto/external/bsd/heimdal/dist/lib/krb5/sp800-108-kdf.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/store_emem.c | 5 +-
crypto/external/bsd/heimdal/dist/lib/krb5/test_pknistkdf.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/krb5/test_plugin.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/krb5/test_store.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/krb5/ticket.c | 23 +-
crypto/external/bsd/heimdal/dist/lib/krb5/transited.c | 7 +-
crypto/external/bsd/heimdal/dist/lib/ntlm/ntlm.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/roken/get_window_size.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/roken/getaddrinfo.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/roken/getarg.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/roken/getxxyyy.c | 11 +-
crypto/external/bsd/heimdal/dist/lib/roken/ndbm_wrap.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/roken/net_write.c | 40 +-
crypto/external/bsd/heimdal/dist/lib/roken/resolve.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/roken/roken.h.in | 17 +-
crypto/external/bsd/heimdal/dist/lib/roken/rtbl.3 | 2 +-
crypto/external/bsd/heimdal/dist/lib/roken/snprintf.c | 11 +-
crypto/external/bsd/heimdal/dist/lib/roken/strtoll.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/roken/strtoull.c | 6 +-
crypto/external/bsd/heimdal/dist/lib/sl/sl.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.c | 1611 +-
crypto/external/bsd/heimdal/dist/lib/sl/slc-gram.h | 85 +-
crypto/external/bsd/heimdal/dist/lib/sl/slc-lex.c | 436 +-
crypto/external/bsd/heimdal/dist/lib/vers/print_version.c | 2 +-
crypto/external/bsd/heimdal/dist/lib/wind/bidi_table.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/bidi_table.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/combining_table.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/combining_table.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/errorlist_table.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/errorlist_table.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/idn-lookup.c | 8 +-
crypto/external/bsd/heimdal/dist/lib/wind/map_table.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/map_table.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/normalize.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/normalize_table.c | 20294 +++++-----
crypto/external/bsd/heimdal/dist/lib/wind/normalize_table.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/punycode_examples.c | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/punycode_examples.h | 4 +-
crypto/external/bsd/heimdal/dist/lib/wind/test-normalize.c | 10 +-
crypto/external/bsd/heimdal/dist/lib/wind/utf8.c | 9 +-
crypto/external/bsd/heimdal/include/config.h | 16 +-
crypto/external/bsd/heimdal/include/kdc-private.h | 3 +
360 files changed, 18818 insertions(+), 18011 deletions(-)
diffs (truncated from 57862 to 300 lines):
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/NEWS
--- a/crypto/external/bsd/heimdal/dist/NEWS Mon Jun 19 21:33:04 2023 +0000
+++ b/crypto/external/bsd/heimdal/dist/NEWS Mon Jun 19 21:41:38 2023 +0000
@@ -1,3 +1,70 @@
+Release Notes - Heimdal - Version Heimdal 7.8
+
+ Bug fixes
+
+ - CVE-2022-42898 PAC parse integer overflows
+
+ - CVE-2022-3437 Overflows and non-constant time leaks in DES{,3} and arcfour
+
+ - CVE-2021-44758 Heimdal KDC: invalid free in ASN.1 codec
+
+ This is a 10.0 on the Common Vulnerability Scoring System (CVSS) v3.
+
+ Heimdal's ASN.1 compiler generates code that allows specially
+ crafted DER encodings of CHOICEs to invoke the wrong free function
+ on the decoded structure upon decode error. This is known to impact
+ the Heimdal KDC, leading to an invalid free() of an address partly
+ or wholly under the control of the attacker, in turn leading to a
+ potential remote code execution (RCE) vulnerability.
+
+ This error affects the DER codec for all CHOICE types used in
+ Heimdal, though not all cases will be exploitable. We have not
+ completed a thorough analysis of all the Heimdal components
+ affected, thus the Kerberos client, the X.509 library, and other
+ parts, may be affected as well.
+
+ This bug has been in Heimdal since 2005. It was first reported by
+ Douglas Bagnall, though it had been found independently by the
+ Heimdal maintainers via fuzzing.
+
+ While no zero-day exploit is known, such an exploit will likely be
+ available soon after public disclosure.
+
+ - Bugs found by UBSAN (including the incorrect encoding of unconstrained
+ INTEGER value -1).
+
+ - Errors found by the LLVM scan-build static analyzer.
+
+ - Errors found by the valgrind memory debugger.
+
+ - Work around GCC Bug 95189 (memcmp wrongly stripped like strcmp).
+
+ - Fix Unicode normalization read of 1 bytes past end of array.
+
+ - Correct ASN.1 OID typo for SHA-384
+
+ - Fix a deadlock in in the MEMORY ccache type.
+
+ - TGS: strip forwardable and proxiable flags if the server is
+ disallowed.
+
+ - CVE-2019-14870: Validate client attributes in protocol-transition
+ - CVE-2019-14870: Apply forwardable policy in protocol-transition
+ - CVE-2019-14870: Always lookup impersonate client in DB
+
+ - Incremental HDB propagation improvements
+
+ - Refactor send_diffs making it progressive
+ - Handle partial writes on non-blocking sockets
+ - Disable Nagle in iprop master and slave
+ - Use async I/O
+ - Don't send I_HAVE in response to AYT
+ - Do not recover log in kadm5_get_principal()
+ - Don't send diffs to slaves with not yet known version
+ - Don't stutter in send_diffs
+
+ - Optional backwards-compatible anon-pkinit behaviour
+
Release Notes - Heimdal - Version Heimdal 7.7
Bug fixes
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/admin/add.c
--- a/crypto/external/bsd/heimdal/dist/admin/add.c Mon Jun 19 21:33:04 2023 +0000
+++ b/crypto/external/bsd/heimdal/dist/admin/add.c Mon Jun 19 21:41:38 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: add.c,v 1.2 2017/01/28 21:31:44 christos Exp $ */
+/* $NetBSD: add.c,v 1.3 2023/06/19 21:41:38 christos Exp $ */
/*
* Copyright (c) 1997-2005 Kungliga Tekniska Högskolan
@@ -35,7 +35,7 @@
#include "ktutil_locl.h"
-__RCSID("$NetBSD: add.c,v 1.2 2017/01/28 21:31:44 christos Exp $");
+__RCSID("$NetBSD: add.c,v 1.3 2023/06/19 21:41:38 christos Exp $");
static char *
readstring(const char *prompt, char *buf, size_t len)
@@ -96,7 +96,8 @@ kt_add(struct add_options *opt, int argc
goto out;
}
if(opt->password_string == NULL && opt->random_flag == 0) {
- if(UI_UTIL_read_pw_string(buf, sizeof(buf), "Password: ", 1)) {
+ if(UI_UTIL_read_pw_string(buf, sizeof(buf), "Password: ",
+ UI_UTIL_FLAG_VERIFY)) {
ret = 1;
goto out;
}
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/admin/change.c
--- a/crypto/external/bsd/heimdal/dist/admin/change.c Mon Jun 19 21:33:04 2023 +0000
+++ b/crypto/external/bsd/heimdal/dist/admin/change.c Mon Jun 19 21:41:38 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: change.c,v 1.2 2017/01/28 21:31:44 christos Exp $ */
+/* $NetBSD: change.c,v 1.3 2023/06/19 21:41:38 christos Exp $ */
/*
* Copyright (c) 1997-2005 Kungliga Tekniska Högskolan
@@ -35,7 +35,7 @@
#include "ktutil_locl.h"
-__RCSID("$NetBSD: change.c,v 1.2 2017/01/28 21:31:44 christos Exp $");
+__RCSID("$NetBSD: change.c,v 1.3 2023/06/19 21:41:38 christos Exp $");
static krb5_error_code
change_entry (krb5_keytab keytab,
@@ -219,7 +219,6 @@ kt_change (struct change_options *opt, i
krb5_kt_end_seq_get(context, keytab, &cursor);
if (ret == KRB5_KT_END) {
- ret = 0;
for (i = 0; i < j; i++) {
if (verbose_flag) {
char *client_name;
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/cf/._ltoptions.m4
Binary file crypto/external/bsd/heimdal/dist/cf/._ltoptions.m4 has changed
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/cf/._ltsugar.m4
Binary file crypto/external/bsd/heimdal/dist/cf/._ltsugar.m4 has changed
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/cf/._lt~obsolete.m4
Binary file crypto/external/bsd/heimdal/dist/cf/._lt~obsolete.m4 has changed
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/cf/broken-getaddrinfo.m4
--- a/crypto/external/bsd/heimdal/dist/cf/broken-getaddrinfo.m4 Mon Jun 19 21:33:04 2023 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-dnl Id
-dnl
-dnl test if getaddrinfo can handle numeric services
-
-AC_DEFUN([rk_BROKEN_GETADDRINFO],[
-AC_CACHE_CHECK([if getaddrinfo handles numeric services], ac_cv_func_getaddrinfo_numserv,
-AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
-
-int
-main(int argc, char **argv)
-{
- struct addrinfo hints, *ai;
- memset(&hints, 0, sizeof(hints));
- hints.ai_flags = AI_PASSIVE;
- hints.ai_socktype = SOCK_STREAM;
- hints.ai_family = PF_UNSPEC;
- if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
- return 1;
- if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
- return 1;
- return 0;
-}
-]])],[ac_cv_func_getaddrinfo_numserv=yes],[ac_cv_func_getaddrinfo_numserv=no],[ac_cv_func_getaddrinfo_numserv=yes]))])
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/cf/roken-frag.m4
--- a/crypto/external/bsd/heimdal/dist/cf/roken-frag.m4 Mon Jun 19 21:33:04 2023 +0000
+++ b/crypto/external/bsd/heimdal/dist/cf/roken-frag.m4 Mon Jun 19 21:41:38 2023 +0000
@@ -490,13 +490,13 @@ dnl
AC_HAVE_STRUCT_FIELD(struct sockaddr, sa_len, [#include <sys/types.h>
#include <sys/socket.h>])
-if test "$ac_cv_func_getaddrinfo" = "yes"; then
- rk_BROKEN_GETADDRINFO
- if test "$ac_cv_func_getaddrinfo_numserv" = no; then
- AC_LIBOBJ(getaddrinfo)
- AC_LIBOBJ(freeaddrinfo)
- fi
-fi
+#if test "$ac_cv_func_getaddrinfo" = "yes"; then
+# rk_BROKEN_GETADDRINFO
+# if test "$ac_cv_func_getaddrinfo_numserv" = no; then
+# AC_LIBOBJ(getaddrinfo)
+# AC_LIBOBJ(freeaddrinfo)
+# fi
+#fi
AC_NEED_PROTO([#include <stdlib.h>], setenv)
AC_NEED_PROTO([#include <stdlib.h>], unsetenv)
diff -r a4324fe89104 -r 6758ed3b2f45 crypto/external/bsd/heimdal/dist/config.guess
--- a/crypto/external/bsd/heimdal/dist/config.guess Mon Jun 19 21:33:04 2023 +0000
+++ b/crypto/external/bsd/heimdal/dist/config.guess Mon Jun 19 21:41:38 2023 +0000
@@ -1,12 +1,14 @@
-#! /bin/sh
+#!/usr/bin/sh
# Attempt to guess a canonical system name.
-# Copyright 1992-2017 Free Software Foundation, Inc.
+# Copyright 1992-2022 Free Software Foundation, Inc.
-timestamp='2017-05-27'
+# shellcheck disable=SC2006,SC2268 # see below for rationale
+
+timestamp='2022-05-25'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
@@ -15,7 +17,7 @@ timestamp='2017-05-27'
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, see <http://www.gnu.org/licenses/>.
+# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
@@ -27,11 +29,19 @@ timestamp='2017-05-27'
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
# You can get the latest version of this script from:
-# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
+# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
#
# Please send patches to <config-patches%gnu.org@localhost>.
+# The "shellcheck disable" line above the timestamp inhibits complaints
+# about features and limitations of the classic Bourne shell that were
+# superseded or lifted in POSIX. However, this script identifies a wide
+# variety of pre-POSIX systems that do not have POSIX shells at all, and
+# even some reasonably current systems (Solaris 10 as case-in-point) still
+# have a pre-POSIX /bin/sh.
+
+
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
@@ -39,7 +49,7 @@ Usage: $0 [OPTION]
Output the configuration name of the system \`$me' is run on.
-Operation modes:
+Options:
-h, --help print this help, then exit
-t, --time-stamp print date of last modification, then exit
-v, --version print version number, then exit
@@ -50,7 +60,7 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright 1992-2017 Free Software Foundation, Inc.
+Copyright 1992-2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -84,7 +94,8 @@ if test $# != 0; then
exit 1
fi
-trap 'exit 1' 1 2 15
+# Just in case it came from the environment.
+GUESS=
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
@@ -96,66 +107,90 @@ trap 'exit 1' 1 2 15
# Portable tmp directory creation inspired by the Autoconf team.
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
-dummy=$tmp/dummy ;
-tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
-case $CC_FOR_BUILD,$HOST_CC,$CC in
- ,,) echo "int x;" > $dummy.c ;
- for c in cc gcc c89 c99 ; do
- if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
- CC_FOR_BUILD="$c"; break ;
- fi ;
- done ;
- if test x"$CC_FOR_BUILD" = x ; then
- CC_FOR_BUILD=no_compiler_found ;
- fi
- ;;
- ,,*) CC_FOR_BUILD=$CC ;;
- ,*,*) CC_FOR_BUILD=$HOST_CC ;;
-esac ; set_cc_for_build= ;'
+tmp=
+# shellcheck disable=SC2172
+trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
+
Home |
Main Index |
Thread Index |
Old Index