x509_request_asymmetric_keys() doesn't need the lengths of the NUL-terminated
strings passing in as it can work that out for itself.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
  */
 static struct key *x509_request_asymmetric_key(struct key *keyring,
                                               const char *signer,
-                                              size_t signer_len,
-                                              const char *authority,
-                                              size_t auth_len)
+                                              const char *authority)
 {
        key_ref_t key;
+       size_t signer_len = strlen(signer), auth_len = strlen(authority);
        char *id;
 
        /* Construct an identifier. */
                return -EPERM;
 
        key = x509_request_asymmetric_key(trust_keyring,
-                                         cert->issuer, strlen(cert->issuer),
-                                         cert->authority,
-                                         strlen(cert->authority));
+                                         cert->issuer, cert->authority);
        if (!IS_ERR(key))  {
                if (!use_builtin_keys
                    || test_bit(KEY_FLAG_BUILTIN, &key->flags))