diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2019-08-11 14:51:16 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2019-08-11 14:51:16 +0000 |
commit | 51172d22d84f258e6ba00c7c87d778abb77ecaba (patch) | |
tree | 0e1d3e22755b334cfce2cf29bd9d67cdd40359a2 /lib/libcrypto/cms | |
parent | c0e2db5e35c62e9c6bb705e4fe8c788b57c182e1 (diff) |
Use ERR_asprintf_error_data() instead of ERR_add_error_data().
Diffstat (limited to 'lib/libcrypto/cms')
-rw-r--r-- | lib/libcrypto/cms/cms_smime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/cms/cms_smime.c b/lib/libcrypto/cms/cms_smime.c index 2bb3c363c9c..d39ee19aa53 100644 --- a/lib/libcrypto/cms/cms_smime.c +++ b/lib/libcrypto/cms/cms_smime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cms_smime.c,v 1.22 2019/08/11 10:38:27 jsing Exp $ */ +/* $OpenBSD: cms_smime.c,v 1.23 2019/08/11 14:51:15 jsing Exp $ */ /* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. @@ -314,8 +314,8 @@ cms_signerinfo_verify_cert(CMS_SignerInfo *si, X509_STORE *store, if (i <= 0) { j = X509_STORE_CTX_get_error(ctx); CMSerror(CMS_R_CERTIFICATE_VERIFY_ERROR); - ERR_add_error_data(2, "Verify error:", - X509_verify_cert_error_string(j)); + ERR_asprintf_error_data("Verify error: %s", + X509_verify_cert_error_string(j)); goto err; } r = 1; |