don't deref ops, they might be null.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24691 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -407,7 +407,7 @@ ecdsa_create_signature(hx509_context context,
|
|||||||
unsigned int siglen;
|
unsigned int siglen;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (der_heim_oid_cmp(signer->ops->key_oid, &asn1_oid_id_ecPublicKey) != 0)
|
if (signer->ops && der_heim_oid_cmp(signer->ops->key_oid, &asn1_oid_id_ecPublicKey) != 0)
|
||||||
_hx509_abort("internal error passing private key to wrong ops");
|
_hx509_abort("internal error passing private key to wrong ops");
|
||||||
|
|
||||||
sig_oid = sig_alg->sig_oid;
|
sig_oid = sig_alg->sig_oid;
|
||||||
@@ -638,7 +638,7 @@ rsa_create_signature(hx509_context context,
|
|||||||
size_t size;
|
size_t size;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (der_heim_oid_cmp(signer->ops->key_oid, &asn1_oid_id_pkcs1_rsaEncryption) != 0)
|
if (signer->ops && der_heim_oid_cmp(signer->ops->key_oid, &asn1_oid_id_pkcs1_rsaEncryption) != 0)
|
||||||
return HX509_ALG_NOT_SUPP;
|
return HX509_ALG_NOT_SUPP;
|
||||||
|
|
||||||
if (alg)
|
if (alg)
|
||||||
|
Reference in New Issue
Block a user