Pass in hx509_signature_rsa to key collector
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19300 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -610,15 +610,12 @@ collect_private_key(hx509_context context,
|
|||||||
void *ptr, CK_ATTRIBUTE *query, int num_query)
|
void *ptr, CK_ATTRIBUTE *query, int num_query)
|
||||||
{
|
{
|
||||||
struct hx509_collector *collector = ptr;
|
struct hx509_collector *collector = ptr;
|
||||||
AlgorithmIdentifier alg;
|
|
||||||
hx509_private_key key;
|
hx509_private_key key;
|
||||||
heim_octet_string localKeyId;
|
heim_octet_string localKeyId;
|
||||||
int ret;
|
int ret;
|
||||||
RSA *rsa;
|
RSA *rsa;
|
||||||
struct p11_rsa *p11rsa;
|
struct p11_rsa *p11rsa;
|
||||||
|
|
||||||
memset(&alg, 0, sizeof(alg));
|
|
||||||
|
|
||||||
localKeyId.data = query[0].pValue;
|
localKeyId.data = query[0].pValue;
|
||||||
localKeyId.length = query[0].ulValueLen;
|
localKeyId.length = query[0].ulValueLen;
|
||||||
|
|
||||||
@@ -661,7 +658,7 @@ collect_private_key(hx509_context context,
|
|||||||
|
|
||||||
ret = _hx509_collector_private_key_add(context,
|
ret = _hx509_collector_private_key_add(context,
|
||||||
collector,
|
collector,
|
||||||
&alg,
|
hx509_signature_rsa(),
|
||||||
key,
|
key,
|
||||||
NULL,
|
NULL,
|
||||||
&localKeyId);
|
&localKeyId);
|
||||||
|
Reference in New Issue
Block a user