Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Slowroll:Build:1
opendkim
fix-RSA_sign-call.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-RSA_sign-call.patch of Package opendkim
--- a/libopendkim/dkim.c +++ b/libopendkim/dkim.c @@ -3932,6 +3932,7 @@ dkim_eom_sign(DKIM *dkim) { int nid; struct dkim_crypto *crypto; + unsigned int ui_l = 0; crypto = (struct dkim_crypto *) sig->sig_signature; @@ -3942,9 +3943,11 @@ dkim_eom_sign(DKIM *dkim) sig->sig_hashtype == DKIM_HASHTYPE_SHA256) nid = NID_sha256; + /* use variable ui_l to savely get the length (unsigned int *) out of RSA_sign and into size_t type l */ status = RSA_sign(nid, digest, diglen, - crypto->crypto_out, (int *) &l, + crypto->crypto_out, &ui_l, crypto->crypto_key); + l = ui_l; if (status != 1 || l == 0) { dkim_load_ssl_errors(dkim, 0);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor