(_hx509_private_key_assign_rsa): set a default sig alg
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19301 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1264,6 +1264,7 @@ _hx509_private_key_assign_rsa(hx509_private_key key, void *ptr)
|
||||
if (key->private_key.rsa)
|
||||
RSA_free(key->private_key.rsa);
|
||||
key->private_key.rsa = ptr;
|
||||
key->signature_alg = oid_id_pkcs1_sha1WithRSAEncryption();
|
||||
key->md = &pkcs1_rsa_sha1_alg;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user