blob: fc77a2bd70ba1bc66038ccac6caef001b0f9081b [file] [log] [blame]
David Howellsc26fd692012-09-24 17:11:48 +01001/* Instantiate a public key crypto key from an X.509 Certificate
2 *
3 * Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
10 */
11
12#define pr_fmt(fmt) "X.509: "fmt
13#include <linux/module.h>
14#include <linux/kernel.h>
15#include <linux/slab.h>
David Howellsc26fd692012-09-24 17:11:48 +010016#include <keys/asymmetric-subtype.h>
17#include <keys/asymmetric-parser.h>
Mimi Zohar3be4bea2013-08-20 14:36:27 -040018#include <keys/system_keyring.h>
David Howellsc26fd692012-09-24 17:11:48 +010019#include <crypto/hash.h>
20#include "asymmetric_keys.h"
David Howellsc26fd692012-09-24 17:11:48 +010021#include "x509_parser.h"
22
Dmitry Kasatkin32c47412014-06-17 11:56:59 +030023static bool use_builtin_keys;
David Howells46963b72014-09-16 17:36:13 +010024static struct asymmetric_key_id *ca_keyid;
Dmitry Kasatkinffb70f62014-06-17 11:56:58 +030025
26#ifndef MODULE
Mimi Zoharf2b3dee2015-02-11 07:33:34 -050027static struct {
28 struct asymmetric_key_id id;
29 unsigned char data[10];
30} cakey;
31
Dmitry Kasatkinffb70f62014-06-17 11:56:58 +030032static int __init ca_keys_setup(char *str)
33{
34 if (!str) /* default system keyring */
35 return 1;
36
David Howells46963b72014-09-16 17:36:13 +010037 if (strncmp(str, "id:", 3) == 0) {
Mimi Zoharf2b3dee2015-02-11 07:33:34 -050038 struct asymmetric_key_id *p = &cakey.id;
39 size_t hexlen = (strlen(str) - 3) / 2;
40 int ret;
41
42 if (hexlen == 0 || hexlen > sizeof(cakey.data)) {
43 pr_err("Missing or invalid ca_keys id\n");
44 return 1;
45 }
46
47 ret = __asymmetric_key_hex_to_key_id(str + 3, p, hexlen);
48 if (ret < 0)
49 pr_err("Unparsable ca_keys id hex string\n");
50 else
David Howells46963b72014-09-16 17:36:13 +010051 ca_keyid = p; /* owner key 'id:xxxxxx' */
52 } else if (strcmp(str, "builtin") == 0) {
Dmitry Kasatkin32c47412014-06-17 11:56:59 +030053 use_builtin_keys = true;
David Howells46963b72014-09-16 17:36:13 +010054 }
Dmitry Kasatkinffb70f62014-06-17 11:56:58 +030055
56 return 1;
57}
58__setup("ca_keys=", ca_keys_setup);
59#endif
60
David Howells5ce43ad2014-07-28 14:11:32 +010061/**
62 * x509_request_asymmetric_key - Request a key by X.509 certificate params.
63 * @keyring: The keys to search.
David Howells4573b642015-07-20 21:16:26 +010064 * @id: The issuer & serialNumber to look for or NULL.
65 * @skid: The subjectKeyIdentifier to look for or NULL.
Dmitry Kasatkinf1b731d2014-10-06 15:21:05 +010066 * @partial: Use partial match if true, exact if false.
David Howells5ce43ad2014-07-28 14:11:32 +010067 *
David Howells4573b642015-07-20 21:16:26 +010068 * Find a key in the given keyring by identifier. The preferred identifier is
69 * the issuer + serialNumber and the fallback identifier is the
70 * subjectKeyIdentifier. If both are given, the lookup is by the former, but
71 * the latter must also match.
Mimi Zohar3be4bea2013-08-20 14:36:27 -040072 */
David Howells5ce43ad2014-07-28 14:11:32 +010073struct key *x509_request_asymmetric_key(struct key *keyring,
David Howells4573b642015-07-20 21:16:26 +010074 const struct asymmetric_key_id *id,
75 const struct asymmetric_key_id *skid,
Dmitry Kasatkinf1b731d2014-10-06 15:21:05 +010076 bool partial)
Mimi Zohar3be4bea2013-08-20 14:36:27 -040077{
David Howells4573b642015-07-20 21:16:26 +010078 struct key *key;
79 key_ref_t ref;
80 const char *lookup;
81 char *req, *p;
82 int len;
Mimi Zohar3be4bea2013-08-20 14:36:27 -040083
David Howells4573b642015-07-20 21:16:26 +010084 if (id) {
85 lookup = id->data;
86 len = id->len;
87 } else {
88 lookup = skid->data;
89 len = skid->len;
90 }
David Howells864e7a82016-04-06 16:13:33 +010091
David Howells46963b72014-09-16 17:36:13 +010092 /* Construct an identifier "id:<keyid>". */
David Howells4573b642015-07-20 21:16:26 +010093 p = req = kmalloc(2 + 1 + len * 2 + 1, GFP_KERNEL);
94 if (!req)
Mimi Zohar3be4bea2013-08-20 14:36:27 -040095 return ERR_PTR(-ENOMEM);
96
Dmitry Kasatkinf1b731d2014-10-06 15:21:05 +010097 if (partial) {
98 *p++ = 'i';
99 *p++ = 'd';
100 } else {
101 *p++ = 'e';
102 *p++ = 'x';
103 }
David Howells46963b72014-09-16 17:36:13 +0100104 *p++ = ':';
David Howells4573b642015-07-20 21:16:26 +0100105 p = bin2hex(p, lookup, len);
David Howells46963b72014-09-16 17:36:13 +0100106 *p = 0;
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400107
David Howells4573b642015-07-20 21:16:26 +0100108 pr_debug("Look up: \"%s\"\n", req);
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400109
David Howells4573b642015-07-20 21:16:26 +0100110 ref = keyring_search(make_key_ref(keyring, 1),
111 &key_type_asymmetric, req);
112 if (IS_ERR(ref))
113 pr_debug("Request for key '%s' err %ld\n", req, PTR_ERR(ref));
114 kfree(req);
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400115
David Howells4573b642015-07-20 21:16:26 +0100116 if (IS_ERR(ref)) {
117 switch (PTR_ERR(ref)) {
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400118 /* Hide some search errors */
119 case -EACCES:
120 case -ENOTDIR:
121 case -EAGAIN:
122 return ERR_PTR(-ENOKEY);
123 default:
David Howells4573b642015-07-20 21:16:26 +0100124 return ERR_CAST(ref);
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400125 }
126 }
127
David Howells4573b642015-07-20 21:16:26 +0100128 key = key_ref_to_ptr(ref);
129 if (id && skid) {
130 const struct asymmetric_key_ids *kids = asymmetric_key_ids(key);
131 if (!kids->id[1]) {
132 pr_debug("issuer+serial match, but expected SKID missing\n");
133 goto reject;
134 }
135 if (!asymmetric_key_id_same(skid, kids->id[1])) {
136 pr_debug("issuer+serial match, but SKID does not\n");
137 goto reject;
138 }
139 }
David Howells864e7a82016-04-06 16:13:33 +0100140
David Howells4573b642015-07-20 21:16:26 +0100141 pr_devel("<==%s() = 0 [%x]\n", __func__, key_serial(key));
142 return key;
143
144reject:
145 key_put(key);
146 return ERR_PTR(-EKEYREJECTED);
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400147}
David Howellscf5b50f2014-08-03 12:54:48 +0100148EXPORT_SYMBOL_GPL(x509_request_asymmetric_key);
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400149
David Howellsc26fd692012-09-24 17:11:48 +0100150/*
David Howellsb426beb2013-08-30 16:18:02 +0100151 * Set up the signature parameters in an X.509 certificate. This involves
152 * digesting the signed data and extracting the signature.
David Howellsc26fd692012-09-24 17:11:48 +0100153 */
David Howellsb426beb2013-08-30 16:18:02 +0100154int x509_get_sig_params(struct x509_certificate *cert)
David Howellsc26fd692012-09-24 17:11:48 +0100155{
David Howells77d09102016-04-06 16:13:33 +0100156 struct public_key_signature *sig = cert->sig;
David Howellsc26fd692012-09-24 17:11:48 +0100157 struct crypto_shash *tfm;
158 struct shash_desc *desc;
David Howells77d09102016-04-06 16:13:33 +0100159 size_t desc_size;
David Howellsc26fd692012-09-24 17:11:48 +0100160 int ret;
161
162 pr_devel("==>%s()\n", __func__);
David Howellsb426beb2013-08-30 16:18:02 +0100163
David Howells6c2dc5a2016-04-06 16:13:34 +0100164 if (!cert->pub->pkey_algo)
165 cert->unsupported_key = true;
166
167 if (!sig->pkey_algo)
168 cert->unsupported_sig = true;
169
170 /* We check the hash if we can - even if we can't then verify it */
171 if (!sig->hash_algo) {
172 cert->unsupported_sig = true;
David Howellsb426beb2013-08-30 16:18:02 +0100173 return 0;
David Howells6c2dc5a2016-04-06 16:13:34 +0100174 }
David Howellsb426beb2013-08-30 16:18:02 +0100175
David Howells77d09102016-04-06 16:13:33 +0100176 sig->s = kmemdup(cert->raw_sig, cert->raw_sig_size, GFP_KERNEL);
177 if (!sig->s)
David Howellsb426beb2013-08-30 16:18:02 +0100178 return -ENOMEM;
Tadeusz Strukdb6c43b2016-02-02 10:08:53 -0800179
David Howells77d09102016-04-06 16:13:33 +0100180 sig->s_size = cert->raw_sig_size;
David Howellsb426beb2013-08-30 16:18:02 +0100181
David Howellsc26fd692012-09-24 17:11:48 +0100182 /* Allocate the hashing algorithm we're going to need and find out how
183 * big the hash operational data will be.
184 */
David Howells77d09102016-04-06 16:13:33 +0100185 tfm = crypto_alloc_shash(sig->hash_algo, 0, 0);
David Howells41559422014-09-16 17:36:15 +0100186 if (IS_ERR(tfm)) {
187 if (PTR_ERR(tfm) == -ENOENT) {
David Howells6c2dc5a2016-04-06 16:13:34 +0100188 cert->unsupported_sig = true;
189 return 0;
David Howells41559422014-09-16 17:36:15 +0100190 }
191 return PTR_ERR(tfm);
192 }
David Howellsc26fd692012-09-24 17:11:48 +0100193
194 desc_size = crypto_shash_descsize(tfm) + sizeof(*desc);
David Howells77d09102016-04-06 16:13:33 +0100195 sig->digest_size = crypto_shash_digestsize(tfm);
David Howellsc26fd692012-09-24 17:11:48 +0100196
David Howellsc26fd692012-09-24 17:11:48 +0100197 ret = -ENOMEM;
David Howells77d09102016-04-06 16:13:33 +0100198 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL);
199 if (!sig->digest)
David Howellsb426beb2013-08-30 16:18:02 +0100200 goto error;
David Howellsc26fd692012-09-24 17:11:48 +0100201
David Howells77d09102016-04-06 16:13:33 +0100202 desc = kzalloc(desc_size, GFP_KERNEL);
203 if (!desc)
204 goto error;
David Howellsc26fd692012-09-24 17:11:48 +0100205
David Howellsb426beb2013-08-30 16:18:02 +0100206 desc->tfm = tfm;
207 desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
David Howellsc26fd692012-09-24 17:11:48 +0100208
209 ret = crypto_shash_init(desc);
210 if (ret < 0)
David Howells77d09102016-04-06 16:13:33 +0100211 goto error_2;
David Howellsb426beb2013-08-30 16:18:02 +0100212 might_sleep();
David Howells77d09102016-04-06 16:13:33 +0100213 ret = crypto_shash_finup(desc, cert->tbs, cert->tbs_size, sig->digest);
214
215error_2:
216 kfree(desc);
David Howellsc26fd692012-09-24 17:11:48 +0100217error:
David Howellsc26fd692012-09-24 17:11:48 +0100218 crypto_free_shash(tfm);
David Howellsc26fd692012-09-24 17:11:48 +0100219 pr_devel("<==%s() = %d\n", __func__, ret);
220 return ret;
221}
David Howellsb426beb2013-08-30 16:18:02 +0100222
223/*
David Howells6c2dc5a2016-04-06 16:13:34 +0100224 * Check for self-signedness in an X.509 cert and if found, check the signature
225 * immediately if we can.
David Howellsb426beb2013-08-30 16:18:02 +0100226 */
David Howells6c2dc5a2016-04-06 16:13:34 +0100227int x509_check_for_self_signed(struct x509_certificate *cert)
David Howellsb426beb2013-08-30 16:18:02 +0100228{
David Howells6c2dc5a2016-04-06 16:13:34 +0100229 int ret = 0;
David Howellsb426beb2013-08-30 16:18:02 +0100230
231 pr_devel("==>%s()\n", __func__);
232
David Howellsad3043f2016-04-06 16:13:34 +0100233 if (cert->raw_subject_size != cert->raw_issuer_size ||
234 memcmp(cert->raw_subject, cert->raw_issuer,
235 cert->raw_issuer_size) != 0)
236 goto not_self_signed;
237
David Howells6c2dc5a2016-04-06 16:13:34 +0100238 if (cert->sig->auth_ids[0] || cert->sig->auth_ids[1]) {
239 /* If the AKID is present it may have one or two parts. If
240 * both are supplied, both must match.
241 */
242 bool a = asymmetric_key_id_same(cert->skid, cert->sig->auth_ids[1]);
243 bool b = asymmetric_key_id_same(cert->id, cert->sig->auth_ids[0]);
David Howellsb426beb2013-08-30 16:18:02 +0100244
David Howells6c2dc5a2016-04-06 16:13:34 +0100245 if (!a && !b)
246 goto not_self_signed;
247
248 ret = -EKEYREJECTED;
249 if (((a && !b) || (b && !a)) &&
250 cert->sig->auth_ids[0] && cert->sig->auth_ids[1])
251 goto out;
252 }
253
David Howellsad3043f2016-04-06 16:13:34 +0100254 ret = -EKEYREJECTED;
255 if (cert->pub->pkey_algo != cert->sig->pkey_algo)
256 goto out;
257
David Howells6c2dc5a2016-04-06 16:13:34 +0100258 ret = public_key_verify_signature(cert->pub, cert->sig);
259 if (ret < 0) {
260 if (ret == -ENOPKG) {
261 cert->unsupported_sig = true;
262 ret = 0;
263 }
264 goto out;
265 }
266
267 pr_devel("Cert Self-signature verified");
268 cert->self_signed = true;
269
270out:
271 pr_devel("<==%s() = %d\n", __func__, ret);
David Howellsb426beb2013-08-30 16:18:02 +0100272 return ret;
David Howells6c2dc5a2016-04-06 16:13:34 +0100273
274not_self_signed:
275 pr_devel("<==%s() = 0 [not]\n", __func__);
276 return 0;
David Howellsb426beb2013-08-30 16:18:02 +0100277}
David Howellsc26fd692012-09-24 17:11:48 +0100278
279/*
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400280 * Check the new certificate against the ones in the trust keyring. If one of
281 * those is the signing key and validates the new certificate, then mark the
282 * new certificate as being trusted.
283 *
284 * Return 0 if the new certificate was successfully validated, 1 if we couldn't
285 * find a matching parent certificate in the trusted list and an error if there
286 * is a matching certificate but the signature check fails.
287 */
288static int x509_validate_trust(struct x509_certificate *cert,
289 struct key *trust_keyring)
290{
David Howells77d09102016-04-06 16:13:33 +0100291 struct public_key_signature *sig = cert->sig;
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400292 struct key *key;
293 int ret = 1;
294
David Howells6c2dc5a2016-04-06 16:13:34 +0100295 if (!sig->auth_ids[0] && !sig->auth_ids[1])
296 return 1;
297
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400298 if (!trust_keyring)
299 return -EOPNOTSUPP;
David Howells77d09102016-04-06 16:13:33 +0100300 if (ca_keyid && !asymmetric_key_id_partial(sig->auth_ids[1], ca_keyid))
Dmitry Kasatkinffb70f62014-06-17 11:56:58 +0300301 return -EPERM;
David Howells6c2dc5a2016-04-06 16:13:34 +0100302 if (cert->unsupported_sig)
303 return -ENOPKG;
Dmitry Kasatkinffb70f62014-06-17 11:56:58 +0300304
David Howells4573b642015-07-20 21:16:26 +0100305 key = x509_request_asymmetric_key(trust_keyring,
David Howells77d09102016-04-06 16:13:33 +0100306 sig->auth_ids[0], sig->auth_ids[1],
Dmitry Kasatkinf1b731d2014-10-06 15:21:05 +0100307 false);
David Howells6c2dc5a2016-04-06 16:13:34 +0100308 if (IS_ERR(key))
309 return PTR_ERR(key);
310
311 if (!use_builtin_keys ||
312 test_bit(KEY_FLAG_BUILTIN, &key->flags)) {
313 ret = public_key_verify_signature(
314 key->payload.data[asym_crypto], cert->sig);
315 if (ret == -ENOPKG)
316 cert->unsupported_sig = true;
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400317 }
David Howells6c2dc5a2016-04-06 16:13:34 +0100318 key_put(key);
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400319 return ret;
320}
321
322/*
David Howellsc26fd692012-09-24 17:11:48 +0100323 * Attempt to parse a data blob for a key as an X509 certificate.
324 */
325static int x509_key_preparse(struct key_preparsed_payload *prep)
326{
David Howells46963b72014-09-16 17:36:13 +0100327 struct asymmetric_key_ids *kids;
David Howellsc26fd692012-09-24 17:11:48 +0100328 struct x509_certificate *cert;
David Howells46963b72014-09-16 17:36:13 +0100329 const char *q;
David Howellsc26fd692012-09-24 17:11:48 +0100330 size_t srlen, sulen;
David Howells46963b72014-09-16 17:36:13 +0100331 char *desc = NULL, *p;
David Howellsc26fd692012-09-24 17:11:48 +0100332 int ret;
333
334 cert = x509_cert_parse(prep->data, prep->datalen);
335 if (IS_ERR(cert))
336 return PTR_ERR(cert);
337
338 pr_devel("Cert Issuer: %s\n", cert->issuer);
339 pr_devel("Cert Subject: %s\n", cert->subject);
David Howells2ecdb232013-08-30 16:18:15 +0100340
David Howells6c2dc5a2016-04-06 16:13:34 +0100341 if (cert->unsupported_key) {
David Howells2ecdb232013-08-30 16:18:15 +0100342 ret = -ENOPKG;
343 goto error_free_cert;
344 }
345
David Howells4e8ae722016-03-03 21:49:27 +0000346 pr_devel("Cert Key Algo: %s\n", cert->pub->pkey_algo);
David Howellsfd19a3d2015-07-29 16:58:32 +0100347 pr_devel("Cert Valid period: %lld-%lld\n", cert->valid_from, cert->valid_to);
David Howellsc26fd692012-09-24 17:11:48 +0100348
David Howells4e8ae722016-03-03 21:49:27 +0000349 cert->pub->id_type = "X509";
David Howellsc26fd692012-09-24 17:11:48 +0100350
David Howells6c2dc5a2016-04-06 16:13:34 +0100351 /* See if we can derive the trustability of this certificate.
352 *
353 * When it comes to self-signed certificates, we cannot evaluate
354 * trustedness except by the fact that we obtained it from a trusted
355 * location. So we just rely on x509_validate_trust() failing in this
356 * case.
357 *
358 * Note that there's a possibility of a self-signed cert matching a
359 * cert that we have (most likely a duplicate that we already trust) -
360 * in which case it will be marked trusted.
361 */
362 if (cert->unsupported_sig || cert->self_signed) {
363 public_key_signature_free(cert->sig);
364 cert->sig = NULL;
365 } else {
366 pr_devel("Cert Signature: %s + %s\n",
367 cert->sig->pkey_algo, cert->sig->hash_algo);
368
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400369 ret = x509_validate_trust(cert, get_system_trusted_keyring());
Petko Manolov41c89b62015-12-02 17:47:55 +0200370 if (ret)
371 ret = x509_validate_trust(cert, get_ima_mok_keyring());
David Howells6c2dc5a2016-04-06 16:13:34 +0100372 if (ret == -EKEYREJECTED)
373 goto error_free_cert;
Mimi Zohar3be4bea2013-08-20 14:36:27 -0400374 if (!ret)
David Howells6c2dc5a2016-04-06 16:13:34 +0100375 prep->trusted = true;
David Howellsc26fd692012-09-24 17:11:48 +0100376 }
377
378 /* Propose a description */
379 sulen = strlen(cert->subject);
David Howellsdd2f6c42014-10-03 16:17:02 +0100380 if (cert->raw_skid) {
381 srlen = cert->raw_skid_size;
382 q = cert->raw_skid;
383 } else {
384 srlen = cert->raw_serial_size;
385 q = cert->raw_serial;
386 }
David Howells46963b72014-09-16 17:36:13 +0100387
David Howellsc26fd692012-09-24 17:11:48 +0100388 ret = -ENOMEM;
David Howells46963b72014-09-16 17:36:13 +0100389 desc = kmalloc(sulen + 2 + srlen * 2 + 1, GFP_KERNEL);
David Howellsc26fd692012-09-24 17:11:48 +0100390 if (!desc)
391 goto error_free_cert;
David Howells46963b72014-09-16 17:36:13 +0100392 p = memcpy(desc, cert->subject, sulen);
393 p += sulen;
394 *p++ = ':';
395 *p++ = ' ';
396 p = bin2hex(p, q, srlen);
397 *p = 0;
398
399 kids = kmalloc(sizeof(struct asymmetric_key_ids), GFP_KERNEL);
400 if (!kids)
401 goto error_free_desc;
402 kids->id[0] = cert->id;
403 kids->id[1] = cert->skid;
David Howellsc26fd692012-09-24 17:11:48 +0100404
405 /* We're pinning the module by being linked against it */
406 __module_get(public_key_subtype.owner);
David Howells146aa8b2015-10-21 14:04:48 +0100407 prep->payload.data[asym_subtype] = &public_key_subtype;
408 prep->payload.data[asym_key_ids] = kids;
409 prep->payload.data[asym_crypto] = cert->pub;
David Howells77d09102016-04-06 16:13:33 +0100410 prep->payload.data[asym_auth] = cert->sig;
David Howellsc26fd692012-09-24 17:11:48 +0100411 prep->description = desc;
412 prep->quotalen = 100;
413
414 /* We've finished with the certificate */
415 cert->pub = NULL;
David Howells46963b72014-09-16 17:36:13 +0100416 cert->id = NULL;
417 cert->skid = NULL;
David Howells77d09102016-04-06 16:13:33 +0100418 cert->sig = NULL;
David Howellsc26fd692012-09-24 17:11:48 +0100419 desc = NULL;
420 ret = 0;
421
David Howells46963b72014-09-16 17:36:13 +0100422error_free_desc:
423 kfree(desc);
David Howellsc26fd692012-09-24 17:11:48 +0100424error_free_cert:
425 x509_free_certificate(cert);
426 return ret;
427}
428
429static struct asymmetric_key_parser x509_key_parser = {
430 .owner = THIS_MODULE,
431 .name = "x509",
432 .parse = x509_key_preparse,
433};
434
435/*
436 * Module stuff
437 */
438static int __init x509_key_init(void)
439{
440 return register_asymmetric_key_parser(&x509_key_parser);
441}
442
443static void __exit x509_key_exit(void)
444{
445 unregister_asymmetric_key_parser(&x509_key_parser);
446}
447
448module_init(x509_key_init);
449module_exit(x509_key_exit);
Konstantin Khlebnikove19aaa72013-09-17 15:14:55 +0400450
451MODULE_DESCRIPTION("X.509 certificate parser");
452MODULE_LICENSE("GPL");