KEYS: Fix public_key asymmetric key subtype name
authorDavid Howells <dhowells@redhat.com>
Tue, 2 Sep 2014 12:52:10 +0000 (13:52 +0100)
committerJames Morris <james.l.morris@oracle.com>
Wed, 3 Sep 2014 00:27:28 +0000 (10:27 +1000)
commit876c6e3e028d1b326c81f6f134a4804b92f67dc7
treea70cb4313b97312923bab99c1799446a79551de4
parent738c5d190f6540539a04baf36ce21d46b5da04bd
KEYS: Fix public_key asymmetric key subtype name

The length of the name of an asymmetric key subtype must be stored in struct
asymmetric_key_subtype::name_len so that it can be matched by a search for
"<subkey_name>:<partial_fingerprint>".  Fix the public_key subtype to have
name_len set.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
crypto/asymmetric_keys/public_key.c