diff options
author | David Howells <dhowells@redhat.com> | 2014-07-01 11:40:19 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2014-07-02 17:07:50 -0400 |
commit | ace0107a3936774e9da2c30cbdc99ad13c103c10 (patch) | |
tree | bbe85b4328e2f1f745da46f5f7116de2c025d737 /crypto | |
parent | 84aabd46bf8791d0c6fc8db4dc65d45093f70aab (diff) |
X.509: Export certificate parse and free functions
Export certificate parse and free functions for use by modules.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Josh Boyer <jwboyer@redhat.com>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asymmetric_keys/x509_cert_parser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/asymmetric_keys/x509_cert_parser.c b/crypto/asymmetric_keys/x509_cert_parser.c index 4a8df29ab713..ac72348c186a 100644 --- a/crypto/asymmetric_keys/x509_cert_parser.c +++ b/crypto/asymmetric_keys/x509_cert_parser.c | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
12 | #define pr_fmt(fmt) "X.509: "fmt | 12 | #define pr_fmt(fmt) "X.509: "fmt |
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/export.h> | ||
14 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
15 | #include <linux/err.h> | 16 | #include <linux/err.h> |
16 | #include <linux/oid_registry.h> | 17 | #include <linux/oid_registry.h> |
@@ -52,6 +53,7 @@ void x509_free_certificate(struct x509_certificate *cert) | |||
52 | kfree(cert); | 53 | kfree(cert); |
53 | } | 54 | } |
54 | } | 55 | } |
56 | EXPORT_SYMBOL_GPL(x509_free_certificate); | ||
55 | 57 | ||
56 | /* | 58 | /* |
57 | * Parse an X.509 certificate | 59 | * Parse an X.509 certificate |
@@ -97,6 +99,7 @@ error_no_ctx: | |||
97 | error_no_cert: | 99 | error_no_cert: |
98 | return ERR_PTR(ret); | 100 | return ERR_PTR(ret); |
99 | } | 101 | } |
102 | EXPORT_SYMBOL_GPL(x509_cert_parse); | ||
100 | 103 | ||
101 | /* | 104 | /* |
102 | * Note an OID when we find one for later processing when we know how | 105 | * Note an OID when we find one for later processing when we know how |