pass context to _hx509_create_signature
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17970 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -892,7 +892,8 @@ hx509_cms_create_signed_1(hx509_context context,
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = _hx509_create_signature(NULL,
|
ret = _hx509_create_signature(context,
|
||||||
|
NULL,
|
||||||
digest_alg,
|
digest_alg,
|
||||||
sd.encapContentInfo.eContent,
|
sd.encapContentInfo.eContent,
|
||||||
NULL,
|
NULL,
|
||||||
@@ -971,7 +972,8 @@ hx509_cms_create_signed_1(hx509_context context,
|
|||||||
if (size != os.length)
|
if (size != os.length)
|
||||||
_hx509_abort("internal ASN.1 encoder error");
|
_hx509_abort("internal ASN.1 encoder error");
|
||||||
|
|
||||||
ret = _hx509_create_signature(_hx509_cert_private_key(cert),
|
ret = _hx509_create_signature(context,
|
||||||
|
_hx509_cert_private_key(cert),
|
||||||
hx509_signature_rsa_with_sha1(),
|
hx509_signature_rsa_with_sha1(),
|
||||||
&os,
|
&os,
|
||||||
&signer_info->signatureAlgorithm,
|
&signer_info->signatureAlgorithm,
|
||||||
|
@@ -196,7 +196,8 @@ _hx509_request_to_pkcs10(hx509_context context,
|
|||||||
if (data.length != size)
|
if (data.length != size)
|
||||||
abort();
|
abort();
|
||||||
|
|
||||||
ret = _hx509_create_signature(signer,
|
ret = _hx509_create_signature(context,
|
||||||
|
signer,
|
||||||
hx509_signature_rsa_with_sha1(),
|
hx509_signature_rsa_with_sha1(),
|
||||||
&data,
|
&data,
|
||||||
&r.signatureAlgorithm,
|
&r.signatureAlgorithm,
|
||||||
|
Reference in New Issue
Block a user