Replace all use of ERR_add_error_data with ERR_asprintf_error_data.
authorbeck <beck@openbsd.org>
Sat, 26 Apr 2014 18:56:37 +0000 (18:56 +0000)
committerbeck <beck@openbsd.org>
Sat, 26 Apr 2014 18:56:37 +0000 (18:56 +0000)
commit0f637b92bc02cf08d6ec14891d27a582cbd971ae
tree86c57b804d6bfaf4c846d7c286917d8063f541d2
parent06bb7f59c61d66080f5ea1fb91e6a9b9714d2bfa
Replace all use of ERR_add_error_data with ERR_asprintf_error_data.
This avoids a lot of ugly gymnastics to do snprintfs before sending the
bag of strings to ERR, and eliminates at least one place in dso_dlfctn.c
where it was being called with the incorrect number of arguments and
using random things off the stack as addresses of strings.
ok krw@, jsing@
74 files changed:
lib/libcrypto/asn1/a_mbstr.c
lib/libcrypto/asn1/asn1_gen.c
lib/libcrypto/asn1/asn1_lib.c
lib/libcrypto/asn1/asn_mime.c
lib/libcrypto/asn1/tasn_dec.c
lib/libcrypto/bio/b_sock.c
lib/libcrypto/bio/bss_conn.c
lib/libcrypto/bio/bss_file.c
lib/libcrypto/cms/cms_smime.c
lib/libcrypto/comp/c_zlib.c
lib/libcrypto/conf/conf_def.c
lib/libcrypto/conf/conf_lib.c
lib/libcrypto/conf/conf_mod.c
lib/libcrypto/dso/dso_dlfcn.c
lib/libcrypto/engine/eng_cnf.c
lib/libcrypto/engine/eng_fat.c
lib/libcrypto/engine/eng_list.c
lib/libcrypto/evp/evp_pbe.c
lib/libcrypto/evp/evp_pkey.c
lib/libcrypto/ocsp/ocsp_ht.c
lib/libcrypto/ocsp/ocsp_vfy.c
lib/libcrypto/pem/pem_lib.c
lib/libcrypto/pkcs7/bio_ber.c
lib/libcrypto/pkcs7/pk7_smime.c
lib/libcrypto/ts/ts_conf.c
lib/libcrypto/ts/ts_rsp_verify.c
lib/libcrypto/ui/ui_lib.c
lib/libcrypto/x509/x509_att.c
lib/libcrypto/x509/x509name.c
lib/libcrypto/x509v3/v3_akey.c
lib/libcrypto/x509v3/v3_alt.c
lib/libcrypto/x509v3/v3_conf.c
lib/libcrypto/x509v3/v3_info.c
lib/libcrypto/x509v3/x509v3.h
lib/libssl/d1_pkt.c
lib/libssl/s3_pkt.c
lib/libssl/src/crypto/asn1/a_mbstr.c
lib/libssl/src/crypto/asn1/asn1_gen.c
lib/libssl/src/crypto/asn1/asn1_lib.c
lib/libssl/src/crypto/asn1/asn_mime.c
lib/libssl/src/crypto/asn1/tasn_dec.c
lib/libssl/src/crypto/bio/b_sock.c
lib/libssl/src/crypto/bio/bss_conn.c
lib/libssl/src/crypto/bio/bss_file.c
lib/libssl/src/crypto/cms/cms_smime.c
lib/libssl/src/crypto/comp/c_zlib.c
lib/libssl/src/crypto/conf/conf_def.c
lib/libssl/src/crypto/conf/conf_lib.c
lib/libssl/src/crypto/conf/conf_mod.c
lib/libssl/src/crypto/dso/dso_dlfcn.c
lib/libssl/src/crypto/engine/eng_cnf.c
lib/libssl/src/crypto/engine/eng_fat.c
lib/libssl/src/crypto/engine/eng_list.c
lib/libssl/src/crypto/evp/evp_pbe.c
lib/libssl/src/crypto/evp/evp_pkey.c
lib/libssl/src/crypto/ocsp/ocsp_ht.c
lib/libssl/src/crypto/ocsp/ocsp_vfy.c
lib/libssl/src/crypto/pem/pem_lib.c
lib/libssl/src/crypto/pkcs7/bio_ber.c
lib/libssl/src/crypto/pkcs7/pk7_smime.c
lib/libssl/src/crypto/ts/ts_conf.c
lib/libssl/src/crypto/ts/ts_rsp_verify.c
lib/libssl/src/crypto/ui/ui_lib.c
lib/libssl/src/crypto/x509/x509_att.c
lib/libssl/src/crypto/x509/x509name.c
lib/libssl/src/crypto/x509v3/v3_akey.c
lib/libssl/src/crypto/x509v3/v3_alt.c
lib/libssl/src/crypto/x509v3/v3_conf.c
lib/libssl/src/crypto/x509v3/v3_info.c
lib/libssl/src/crypto/x509v3/x509v3.h
lib/libssl/src/ssl/d1_pkt.c
lib/libssl/src/ssl/s3_pkt.c
lib/libssl/src/ssl/ssl_cert.c
lib/libssl/ssl_cert.c